Class: ReadyForI18N::HtmlAttrExtractor
- Inherits:
-
HtmlTextExtractor
- Object
- HtmlTextExtractor
- ReadyForI18N::HtmlAttrExtractor
- Defined in:
- lib/html_attr_extractor.rb
Constant Summary collapse
- LABEL_TAG_ATTR_PATTERN =
[[/<img(.*)(\/>|<\/img>)/i,/alt=["'](.*?)["']/i], [/<img(.*)(\/>|<\/img>)/i,/title=["'](.*?)["']/i], [/<input(.*)\s*type\s*=\s*["']submit["'](.*)/i,/value\s*=\s*["'](.*?)["']/i], [/<input(.*)\s*type\s*=\s*["']button["'](.*)/i,/value\s*=\s*["'](.*?)["']/i]]
- SKIP_PATTERN =
/<%(.*)%>/
Constants inherited from HtmlTextExtractor
ReadyForI18N::HtmlTextExtractor::SEPERATOR, ReadyForI18N::HtmlTextExtractor::SKIP_INLINE_TAG, ReadyForI18N::HtmlTextExtractor::SKIP_TAGS
Method Summary
Methods included from ExtractorBase
#can_replace?, #extract, key_mapper, key_mapper=, #t_method, #to_key, use_dot, use_dot?