$value = preg_replace('~\x{200B}~u', '', $value);
if ($value !== $oldValue) {
- $node->textContent = $value;
+ $node->nodeValue = $value;
}
$this->detectMention($node, $value, $usernames);
}
if ($value !== $oldValue) {
- $node->textContent = $value;
+ $node->nodeValue = $value;
}
}
$element = $text->ownerDocument->createElement('a');
$element->setAttribute('href', $link);
- $element->textContent = $link;
+ $element->nodeValue = $link;
}
else {
return $matches[0];
$node->parentNode->insertBefore($element, $node);
// modify text content of existing text node
- $node->textContent = mb_substr($value, $pos + strlen($marker));
+ $node->nodeValue = mb_substr($value, $pos + strlen($marker));
}
}
}