Beautify html_safe method