This seems to be something new. Anyone who can share why one would choose to sanitize on the front-end instead of the back-end?
You might want to sanitize it before it goes over the wire, but still have to sanitize on the back-end as well as you can’t trust user input.
You could sanitize it once you send it to the client, but you should not end up in a situation where you are the one sending possibly corrupted html to a client, right?
I’m probably missing something