This would be an alternative to theopenconversationkit/tock#1670 Sanitizing directly in the frontend would remove the reliance on the backend to produce proper HTML.