diff --git a/src/Purifier.php b/src/Purifier.php
index 5dc1190..900d912 100644
--- a/src/Purifier.php
+++ b/src/Purifier.php
@@ -33,7 +33,7 @@ public static function stripAttributes(string $string, string $tag, array $allow
$domDocument = new DOMDocument();
libxml_use_internal_errors(true);
// We're using template tags only for wrapping. In normal case It would be `p`.
- $domDocument->loadHTML(implode('', ['', $string, '']), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
+ $domDocument->loadHTML(implode('', ['', $string, '']), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
/**
* @var \DOMElement $node
@@ -56,7 +56,7 @@ public static function stripAttributes(string $string, string $tag, array $allow
return str_replace(
['', ''],
'',
- mb_convert_encoding($domDocument->saveHTML($domDocument->documentElement), 'ISO-8859-1', 'UTF-8')
+ $domDocument->saveHTML($domDocument->documentElement)
);
}
}