Add twig function for highlight result