fix errors with truncate html