/** * Accessor for content reduced to visible text. Acts * like a text mode browser, normalising space and * reducing images to their alt text. * @return string Content as plain text. * @access public */ function getText() { return SimpleSaxParser::normalise($this->_content); }
/** * Accessor for plain text of page as a text browser * would see it. * @return string Plain text of page. * @access public */ function getText() { if (!$this->_text) { $this->_text = SimpleSaxParser::normalise($this->_raw); } return $this->_text; }
function testHtmlEntityTranslation() { $this->assertEqual(SimpleSaxParser::normalise('<>"&'), '<>"&'); }