How can I strip out special characters and HTML tags, I know this question has been asked a 1000 times on Google but having trouble with those solutions.
Posted on 2016-08-01
I have a input field where I'm using tinymce and say my value is "My product <sup>2</sup>" ... I'm using...
REReplaceNoCase(str, "[^0-9a-zA-Z ]", "", "ALL") but when it submits the value to the db I get ... "My product<sup> 2</sup>". Expected results would be "My product 2".
I know you are probably saying, well why use a rich text editor. I'm wanting to save the stripped out version to another column in the db and the html version to another column.