fix simple_format escapes own output when sanitize is set to true

this fixes #12757