I am having a text area in my UI and I would like to filter out all xml(including html) text entered by user using preg_replace. I need a some help with it.
Eg:
Emailed user sam at 12:15 PM
<details><email>sam@sam.com</email></details>
After preg_replace :
Emailed user sam at 12:15 PM
Along with this any pointers to preg_replace regex would be great. I tried using some java regex(I am new to PHP) in preg_replace and found that it did not work. I am not sure if my regex was wrong or preg_replace uses different kind of regex.
All your help is much appreciated.