Module: StringUtilityBelt::Tags
- Included in:
- String
- Defined in:
- lib/string_utility_belt/tags.rb
Constant Summary
- EMPTY_STR =
''- TAG_PATTERN =
/<[^<]*?>/- ANY_HTML_TAG_PATTERN =
TAGs dispon??veis at?? 09/2010 - FONTE: www.w3schools.com/tags/default.asp
/<\/?(a|p|abbr|acronym|address|applet|area|b|base|basefont|bdo|big|blockquote|body|br|button|caption|center|cite|code|col|colgroup|dd|del|dfn|dir|div|dl|dt|em|fieldset|font|form|frame|frameset|h6|head|hr|html|i|iframe|img|input|ins|isindex|kbd|label|legend|li|link|map|menu|meta|noframes|noscript|object)[^>]+??>/im
Instance Method Summary (collapse)
Instance Method Details
- (Object) html_tag_cleaner
14 15 16 |
# File 'lib/string_utility_belt/tags.rb', line 14 def html_tag_cleaner self.gsub(ANY_HTML_TAG_PATTERN, EMPTY_STR) end |
- (Object) tag_cleaner
10 11 12 |
# File 'lib/string_utility_belt/tags.rb', line 10 def tag_cleaner self.gsub(TAG_PATTERN, EMPTY_STR) end |