Reverted changes to sanitize chat HTML

This effectively undoes commit 7b90be10e78b7e31badcc8ef099862a7a3896deb