HTMLPurifier_Encoder::cleanUTF8
Cleans a UTF-8 string for well-formedness and SGML validity
It will parse according to UTF-8 and return a valid UTF8 string, with non-SGML codepoints excluded.
Signature
public function cleanUTF8(
$str,
[boolean
$force_php = false] )
Parameters
$str
—$force_php
— boolean