Modified error sanitising to allow code blocks

Using the sanitize_html() function instead of fix() so we can keep the
prettified errors.