Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CSU
tweeki
Commits
eb8b3442
Commit
eb8b3442
authored
Jun 13, 2019
by
Tobias Haider
Browse files
suppress warnings for malformed html
parent
7a4314e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/Hooks.php
View file @
eb8b3442
...
...
@@ -58,7 +58,9 @@ class TweekiHooks {
$doc
=
new
DOMDocument
();
$html
=
mb_convert_encoding
(
$text
,
'HTML-ENTITIES'
,
'UTF-8'
);
if
(
$html
!=
''
)
{
libxml_use_internal_errors
(
true
);
$doc
->
loadHTML
(
$html
);
libxml_clear_errors
();
$spans
=
$doc
->
getElementsByTagName
(
'span'
);
foreach
(
$spans
as
$span
)
{
$mw_headline
=
''
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment