Special characters <, >, %, \'\', \"\", $ and ^ are not allowed in a textbo
<
>
%
\'\'
\"\"
$
^
Try something like
In function you can get text from your textarea or what you are using. If data is valid function () should return true. Otherwise form wouldn't be submitted.