You should not do this and if you choose to add HTML to your index we won't support any problems that arise as a result.
If you are doing this to template, HTML templating is designed for building HTML items, but it doesn’t parse HTML stored in variables. This would open you up to XSS vulnerability.
We recommend not storing HTML at all in Algolia records. Records should only contain the data.