Class: XMLScan::HTMLScanner
- Inherits:
-
XMLScanner
- Object
- XMLScanner
- XMLScan::HTMLScanner
- Defined in:
- lib/xmlscan/htmlscan.rb
Constant Summary
Constants included from XMLScanner::OptRegexp
XMLScanner::OptRegexp::RE_ENCODINGS, XMLScanner::OptRegexp::RE_ENCODING_OPTIONS, XMLScanner::OptRegexp::UTFSTR
Instance Attribute Summary
Attributes inherited from XMLScanner
Instance Method Summary collapse
-
#get_cdata_content ⇒ Object
This method should be called only from on_stag_end.
Methods inherited from XMLScanner
apply_option, apply_options, #initialize, #lineno, new, #opt_encoding, #parse_document, #path, provided_options, #source
Constructor Details
This class inherits a constructor from XMLScan::XMLScanner
Instance Method Details
#get_cdata_content ⇒ Object
This method should be called only from on_stag_end.
197 198 199 200 201 202 203 204 205 206 207 |
# File 'lib/xmlscan/htmlscan.rb', line 197 def get_cdata_content unless not s = @src.test or s[0] == ?< && s[1] == ?/ then dst = @src.get until not s = @src.test or s[0] == ?< && s[1] == ?/ dst << @src.get_plain end dst else '' end end |