mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Missed this file when adding.
This commit is contained in:
parent
8248f6942f
commit
995d53ebfc
1 changed files with 8 additions and 0 deletions
|
@ -167,6 +167,10 @@ class HTML
|
|||
|
||||
$message = mb_convert_encoding($message, 'HTML-ENTITIES', "UTF-8");
|
||||
|
||||
if (empty($message)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
@$doc->loadHTML($message, LIBXML_HTML_NODEFDTD);
|
||||
|
||||
XML::deleteNode($doc, 'style');
|
||||
|
@ -588,6 +592,10 @@ class HTML
|
|||
|
||||
$message = mb_convert_encoding($message, 'HTML-ENTITIES', "UTF-8");
|
||||
|
||||
if (empty($message)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
@$doc->loadHTML($message, LIBXML_HTML_NODEFDTD);
|
||||
|
||||
$message = $doc->saveHTML();
|
||||
|
|
Loading…
Reference in a new issue