Skip to content

Commit

Permalink
Fix HTML to text process is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow243 authored and josaphatim committed Jan 4, 2024
1 parent 02a7b0d commit 51adb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/message_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ class HTMLToText {

function __construct($html) {
$doc = new DOMDocument();
$doc->loadHTML(htmlentities($html, ENT_QUOTES | ENT_HTML5, 'UTF-8'));
$doc->loadHTML(html_entity_decode($html, ENT_QUOTES | ENT_HTML5, 'UTF-8'));
if (trim($html) && $doc->hasChildNodes()) {
$this->parse_nodes($doc->childNodes);
}
Expand Down

0 comments on commit 51adb52

Please sign in to comment.