Module: Card::Content::Clean
- Included in:
- Card::Content
- Defined in:
- card/lib/card/content/clean.rb
Overview
tools for cleaning content, especially for restricting unwanted HTML
Constant Summary collapse
- ALLOWED_TAGS =
.freeze
- ATTR_VALUE_RE =
[/(?<=^')[^']+(?=')/, /(?<=^")[^"]+(?=")/, /\S+/].freeze