Lines Matching refs:text
40 protected $text; variable in Html2Text\\Html2Text
295 return $this->text;
354 $text = trim($this->html);
356 $this->converter($text);
359 $text .= "\n\nLinks:\n------\n";
361 $text .= '[' . ($i + 1) . '] ' . $url . "\n";
365 $this->text = $text;
370 protected function converter(&$text) argument
372 $this->convertBlockquotes($text);
373 $this->convertPre($text);
374 $text = preg_replace($this->search, $this->replace, $text);
375 $text = preg_replace_callback($this->callbackSearch, array($this, 'pregCallback'), $text);
376 $text = strip_tags($text);
377 $text = preg_replace($this->entSearch, $this->entReplace, $text);
378 $text = html_entity_decode($text, $this->htmlFuncFlags, self::ENCODING);
381 $text = preg_replace('/&([a-zA-Z0-9]{2,6}|#[0-9]{2,4});/', '', $text);
385 $text = str_replace('|+|amp|+|', '&', $text);
388 $text = preg_replace("/\n\s+\n/", "\n\n", $text);
389 $text = preg_replace("/[\n]{3,}/", "\n\n", $text);
392 $text = ltrim($text, "\n");
395 $text = wordwrap($text, $this->options['width']);
461 protected function convertPre(&$text) argument
464 while (preg_match('/<pre[^>]*>(.*)<\/pre>/ismU', $text, $matches)) {
482 $text = preg_replace_callback(
485 $text,
499 protected function convertBlockquotes(&$text) argument
501 if (preg_match_all('/<\/*blockquote[^>]*>/i', $text, $matches, PREG_OFFSET_CAPTURE)) {
502 $originalText = $text;
519 $body = mb_substr($text, $start + $taglen - $diff, $len);
533 $text = mb_substr($text, 0, $start - $diff)
535 . mb_substr($text, $end + mb_strlen($m[0]) - $diff);
646 * @param string $text HTML content