Allow wildcards in whitelist attributes
See original GitHub issueHTML5 allows the use of data-foo, data-foo-bar, etc to specify information on elements. These are relatively harmless and should only contain text.
Currently, each data- attribute needs to be specified explicitly on a whitelist so that it’s not removed by Jsoup.clean(). Can we add support for either:
- Wildcard attributes, e.g.
Whitelist.relaxed().addAttributes("a", "data-*")or - A new function, like
Whitelist.relaxed().allowDataAttributes("a")
Issue Analytics
- State:
- Created 9 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Can I use a wildcard in the sender Whitelist, or ... - N-able
You can use the asterisk symbol (*) as a wildcard, in the Sender Whitelist and Sender Blacklist. To add entries: Navigate to the...
Read more >Using Wildcards in Policies - the Mimecast Community
Wildcard entries can consist of all sub-domains or complete the address or domain variations in these situations. Wildcard entries cannot be ...
Read more >Support wildcard in whitelisted_return_urls #943 - ory/kratos
Wildcard redirect URLs are usually considered bad practice because the allow developers to be lazy and whitelist every domain on the planet, ...
Read more >CORS: Cannot use wildcard in Access-Control-Allow-Origin ...
Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. doesn't work on firefox either. My Node.js setup is: var allowCrossDomain = ...
Read more >How do I add Domain Wildcards to My Block or Allow Lists?
Adding wildcards to your block or allow lists is accomplished by an implied wildcard. Please see the examples below for the syntax of ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I am trying out jsoup to validate html pages. Works great so far. Would have been awesome, if wildcards were possible with
jsoup.(Closing out old, dormant bugs. If you are still impacted by this, please reopen & vote.)