You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since I don't think this is currently possible, it would be nice to be able to be able to use setAllowedAttrs() to detect a starting pattern inside a href attribute like data:image/*.
As far as I understood, it's not about the attribute name (like href), but about declaring allowed values or value patterns?
I've been working on a DOM-base sanitizer for HTML, recently - it seems some concepts could be reused here as well to introduce custom Behavior. Please have a look to the example at https://github.com/typo3/html-sanitizer#example--api
Interesting, so I guess you're looking for a way to filter the isHrefSafeValue() method?
I think that could be a good addition, my concern was always that people could allow things without having context on why they're not allowed by default. I'll have a look into this.
@ohader I'd love to hear more about that, do you have that code anywhere that I can look into?
Since I don't think this is currently possible, it would be nice to be able to be able to use
setAllowedAttrs()
to detect a starting pattern inside ahref
attribute likedata:image/*
.e.g. This gets false positive flagged:
The text was updated successfully, but these errors were encountered: