trying to make truncatehtml work