Skip to content Skip to sidebar Skip to footer
Showing posts with the label Html Sanitizing

How To Make A Jsoup Whitelist To Accept Certain Attribute Content

I'm using Jsoup with relaxed whitelist. It seems perfect but I would like to keep the embedded … Read more How To Make A Jsoup Whitelist To Accept Certain Attribute Content

Htmlspecialchars Causing Text To Disapear

I encountered a particular string (it's not completely printable, but you can see it below) tha… Read more Htmlspecialchars Causing Text To Disapear

Unicode Replacement Characters In The Php Htmlspecialchars Function

In the htmlspecialchars function, if you set the ENT_SUBSTITUTE flag, it is supposed to replace som… Read more Unicode Replacement Characters In The Php Htmlspecialchars Function

Remove All Html Tag Before Validation

is there a clean way to remove all html tag of all attributes before validation I found acts_as_san… Read more Remove All Html Tag Before Validation