I've mainly designed this for backend devs (i.e. rails, django people who just render plain html/css on the front-end), and we generally do HTML sanitization on the server side.
Example: https://api.rubyonrails.org/classes/ActionView/Helpers/Sanit...