properly escapes the translated strings in html entities