Skip to content

Commit

Permalink
Fix for removeAllHTMLTagsAndAttributes to decode html entities
Browse files Browse the repository at this point in the history
For #1000
  • Loading branch information
eSilverStrike committed Nov 29, 2019
1 parent 4524367 commit 92055f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/classes/gltext.class.php
Expand Up @@ -307,6 +307,9 @@ public static function removeAllHTMLTagsAndAttributes($text)
];
$text = htmLawed($text, $config);

// Need to do this since htmLawed not only strips the tags it converts html special chars to entities which we do not want
$text = htmlspecialchars_decode($text);

return $text;
}

Expand Down

0 comments on commit 92055f4

Please sign in to comment.