Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Remove All Html - Javascript Entities

$
0
0
Hi

I want your opinion about removing all no human-text (in addition html,php,javascript tags) sympols from a textarea for max security

I used CHtmlPurifier() to purify the field but not work with encoded characters like (maybe needs some settings)

<script src=http://www.example.com/malicious-code.js></script>


I could use preg_replace but I want a way based on Yii
How to achieve that with the minimum code?

Thanks

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>