Change the truncate html function