I have a rich text box that generates HTML markup in a textarea (i.e the JavaScript library called nicEdit). However, because the server has request validation and I am not allowed to disable it, I have to encode the HTML text before submitting it. In order to do that, I need to be able to detect whenever a postback occurs (i.e when the page is being reloaded) in order to encode the HTML content of the textarea before it is sent to the server.
I found an SO question showing how to do that with asynchronous postback requests, but not with synchronous ones.
How could this be acheived ? Thank you.