I just found out that malformed html tags when submitted through form may result to 403 Forbidden error and redirect to current page like as if nothing has happened.
My question is how can i catch that error in controller’s action and save it on a flash so i can notify user that they are submitting a malformed html?
I don’t think that it should reach the controller before detecting that the submitted HTML is malformed. Use a client-side HTML parser, like Pure Javascript HTML parser.
The only problem is when the browser’s javascript is disabled. In that case, forget the javascript HTML parser and create a method or function that will check the correctness of the HTML submitted.
Hi guys. I too am facing the same problem where some words cause my form to throw 403 Forbidden. I’m using a shared webhost in Australia, so could it be an .htaccess level issue? Could anyone figure this out.