Ensure we html_encode before xml_encode as the html encoding should be html...