update html_safe truncation