refactor code to us the truncatHtml over the exist methods truncate an truncateWords