Skip to content Skip to sidebar Skip to footer
Showing posts with the label Sanitize

How To Sanitize Html String Except Image Url?

I'm trying to sanitize an html string, but I want to whitelist image urls. My code: ActionView:… Read more How To Sanitize Html String Except Image Url?

Sanitize All Scripts From Html String

The HTML5 clipboard is awesome, but I am looking for a way to make it safe. The user is pasting tex… Read more Sanitize All Scripts From Html String