Lines Matching defs:text

131 	public $tag = 'text';
213 if (isset($this->text)) {
214 $string .= " text: ({$this->text})";
366 $text = '';
368 if ($this->tag === 'text') {
369 if (!empty($this->text)) {
370 $text = ' with text: ' . $this->text;
374 $debug_object->debug_log(1, 'Innertext of tag: ' . $this->tag . $text);
418 function text()
447 $ret .= $this->convert_text($n->text());
470 // text, comment, unknown
614 // Handle 'text' selector
615 if($pass && $tag === 'text' && $node->tag === 'text') {
621 // Skip if node isn't a child node (i.e. text nodes)
725 $nodeKeyValue = $node->text();
977 case 'plaintext': return $this->text();
1021 function convert_text($text)
1026 $converted_text = $text;
1048 // Check if the reported encoding could have been incorrect and the text is actually already UTF-8
1050 && ($this->is_utf8($text))) {
1051 $converted_text = $text;
1053 $converted_text = iconv($sourceCharset, $targetCharset, $text);
1057 // Lets make sure that we don't have that silly BOM issue with any of the utf-8 text we output.
1655 // Read next tag if there is no text between current position and the
1665 // Add a text node for text between tags
1857 // If we don't have a match add current tag as text node
1884 // If we don't have a match add current tag as text node
1895 } else { // Random tag, add as text node
1940 // The start tag cannot contain another start tag, if so add as text
2009 $node->tag = 'text';
2018 $node->tag = 'text';
2079 // If it's a BR tag, we need to set it's text to the default text.
2232 function restore_noise($text)
2237 while (($pos = strpos($text, '___noise___')) !== false) {
2244 if (strlen($text) > $pos + 15) {
2246 . $text[$pos + 11]
2247 . $text[$pos + 12]
2248 . $text[$pos + 13]
2249 . $text[$pos + 14]
2250 . $text[$pos + 15];
2257 $text = substr($text, 0, $pos)
2259 . substr($text, $pos + 16);
2262 $text = substr($text, 0, $pos)
2265 . substr($text, $pos + 16);
2270 $text = substr($text, 0, $pos)
2272 . substr($text, $pos + 11);
2275 return $text;
2278 function search_noise($text)
2284 if (strpos($noiseElement, $text) !== false) {
2303 return $this->root->text();