python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Allow a href links to phone number in owasp HtmlPolicyBuilder
I am trying to properly configure owasp HtmlPolicyBuilder so that it does not remove a href tel from a sample String like this <p><a href="tel:8888888888">Phone number</a>&...
Joanna
Votes: 0
Answers: 1
How to allow all font-family values on sanitize-html?
Hi,
Im using sanitize-html and I want to allow any value for font-family so Im doing this:
var cleanmsg = sanitizeHtml(rawmsg, {
allowedTags: [ 'span' ]
allowedAttributes: {
'spa...
Cain Nuke
Votes: 0
Answers: 1
Rails Custom Scrubber which *modifies* PermitScrubber default behavior
If one uses Rails::Html::PermitScrubber and doesn't specify a value for tags or attributes it defaults to using reasonable defaults from Loofah::HTML5::Scrub. However, as soon as you set tags or attr...
Peter Gerdes
Votes: 0
Answers: 1