Xml_print.Utf8SourceUtf8 normalizer and encoder for HTML.
Given a pp function produced by one of the functors in Xml_print, this modules is used as following:
let encode x = fst (Xml_print.Utf8.normalize_html x) in
Format.printf "%a" (Html.pp ~encode ()) documentnormalize str take a possibly invalid utf-8 string and return a valid utf-8 string where invalid bytes have been replaced by the replacement character U+FFFD. The returned boolean is true if invalid bytes were found