Module: PragmaticSegmenter::Cleaner::Rules::HTML
- Defined in:
- lib/pragmatic_segmenter/cleaner/rules.rb
Constant Summary collapse
- HTMLTagRule =
Rubular: rubular.com/r/9d0OVOEJWj
Rule.new(/<\/?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[\^'">\s]+))?)+\s*|\s*)\/?>/, '')
- EscapedHTMLTagRule =
Rubular: rubular.com/r/XZVqMPJhea
Rule.new(/<\/?[^gt;]*gt;/, '')
- All =
[HTMLTagRule, EscapedHTMLTagRule]