Add truncate highlight method for result snippet