I have DCT which has a textarea item where I need to check for \n and other word smart characters like —. The content creators enter these characters while copying content from word. I have a CGI reading stuff from this DCR and it breaks when it encounters these special characters. I just started creating a regex validation code for this field which is like validation-regex="^[^\n\xA0`\x96]*$"I am using \x96 for mdash but it doesn't work. The validation works fine for first three characters.Can anyone provide me with the complete list of characters and there escape sequences which I need to escape in here.
TeamSite::CGI_lite::escape_html_data(string)
TeamSite::CGI_lite::unescape_html_data(string)
It didn't work. Is there any other way of doing it. I think even if we write code on onchange event it will only be regex.