Lines Matching defs:text
134 public $tag = 'text';
216 if (isset($this->text)) {
217 $string .= " text: ({$this->text})";
369 $text = '';
371 if ($this->tag === 'text') {
372 if (!empty($this->text)) {
373 $text = ' with text: ' . $this->text;
377 $debug_object->debug_log(1, 'Innertext of tag: ' . $this->tag . $text);
421 function text()
450 $ret .= $this->convert_text($n->text());
473 // text, comment, unknown
617 // Skip if node isn't a child node (i.e. text nodes)
721 $nodeKeyValue = $node->text();
973 case 'plaintext': return $this->text();
1017 function convert_text($text)
1022 $converted_text = $text;
1044 // Check if the reported encoding could have been incorrect and the text is actually already UTF-8
1046 && ($this->is_utf8($text))) {
1047 $converted_text = $text;
1049 $converted_text = iconv($sourceCharset, $targetCharset, $text);
1053 // Lets make sure that we don't have that silly BOM issue with any of the utf-8 text we output.
1649 // Read next tag if there is no text between current position and the
1659 // Add a text node for text between tags
1851 // If we don't have a match add current tag as text node
1878 // If we don't have a match add current tag as text node
1889 } else { // Random tag, add as text node
1934 // The start tag cannot contain another start tag, if so add as text
2003 $node->tag = 'text';
2012 $node->tag = 'text';
2073 // If it's a BR tag, we need to set it's text to the default text.
2226 function restore_noise($text)
2231 while (($pos = strpos($text, '___noise___')) !== false) {
2238 if (strlen($text) > $pos + 15) {
2240 . $text[$pos + 11]
2241 . $text[$pos + 12]
2242 . $text[$pos + 13]
2243 . $text[$pos + 14]
2244 . $text[$pos + 15];
2251 $text = substr($text, 0, $pos)
2253 . substr($text, $pos + 16);
2256 $text = substr($text, 0, $pos)
2259 . substr($text, $pos + 16);
2264 $text = substr($text, 0, $pos)
2266 . substr($text, $pos + 11);
2269 return $text;
2272 function search_noise($text)
2278 if (strpos($noiseElement, $text) !== false) {
2297 return $this->root->text();