Jump to content

Stripping Unsafe HTML


Zepo.

Recommended Posts

Well, it doesn't protect against malicious JS:

 

Warning

 

This function does not modify any attributes on the tags that you allow using allowable_tags , including the style and onmouseover attributes that a mischievous user may abuse when posting text that will be shown to other users.

 

 

That is why I said it won't work. Yes, you can allow the tags you want, but a user could still enter XSS attacks.

Link to comment
https://forums.phpfreaks.com/topic/82608-stripping-unsafe-html/#findComment-420079
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.