Bugs fixed in and refactoring of truncate*_html.