safely truncates html