function getFilteredContent($content) { $filtered = apply_filters('the_content', $content); $filtered = $this->fixAnnoyingCharacters($filtered); $config = array('valid_xhtml' => 1, 'no_deprecated_attr' => 2, 'unique_ids' => 'fixme-', 'hook' => '\\Pressbooks\\Sanitize\\html5_to_xhtml11', 'tidy' => -1); return htmLawed($filtered, $config); }