I would advise you to study limited HTML client-side coding, fairly easy access to jquery by attaching processing to the submit form.
What do I mean by limited? Ampersands, brackets, and quotation marks must be encoded, but not Unicode characters. You indicate that, in fact, the numerical emission codes are evil and reduced, unlike their unlimited equivalents!
You can run a string that you send through a javascript function similar to the following code, providing you a value that will pass the request check:
function safeString(s) { return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g, """); }
This may cause you some sadness if, after saving it or performing server-side magic with the presented value, you want to re-display it inside the input. Let me clarify: if you just put a line encoded this way in an empty paragraph, it will display fine; however, if you upload it to a text box, you will see & lt; instead of <
Ironically, when writing the last sentence, I had to enter & lt < and & lt, respectively ...
source share