I don't think that it's too difficult. Just check every tag's text for forbidden characters and replace them with something. I'm not sure about performance.
The best way I can think to implement it would be listening for a copy event and replacing the text in the clipboard.
Something like:
document.addEventListener('copy', sanitizeClipboardContent);