fix text_html on legacy template