Lines Matching refs:text
75 * @param $text
82 public function __construct($text, string $type = self::XML_TYPE)
85 if (empty($text)) {
86 throw new ExceptionBadSyntax("The xml text markup should not be empty.", self::CANONICAL);
131 $text = $this->processTextBeforeLoading($text);
145 $result = $this->domDocument->loadXML($text, $options);
164 $htmlEntityEncoded = mb_convert_encoding($text, 'HTML-ENTITIES', 'UTF-8');
202 $message .= "Error: " . $error->message . ", Loaded text: " . $text;
623 * If the text was a list
624 * of sibling text without parent
651 private function processTextBeforeLoading($text)
653 $text = str_replace(DOKU_LF, "", $text);
654 $text = preg_replace("/\r\n\s*\r\n/", "\r\n", $text);
655 $text = preg_replace("/\n\s*\n/", "\n", $text);
656 $text = preg_replace("/\n\n/", "\n", $text);
657 return $text;