Regain proposes a tag library to help rendering the search output into a HTML file. If you need advanced functionality, here is how to add your own tags.
(to be translated)