Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for addProtocols method in Config #5

Closed
ishults opened this issue Jul 22, 2014 · 0 comments
Closed

Add support for addProtocols method in Config #5

ishults opened this issue Jul 22, 2014 · 0 comments

Comments

@ishults
Copy link
Collaborator

ishults commented Jul 22, 2014

Currently there is no way to add protocols to whitelists as allowed in JSoup here: http:https://jsoup.org/apidocs/org/jsoup/safety/Whitelist.html#addProtocols%28java.lang.String,%20java.lang.String,%20java.lang.String...%29

It would be help if we could add protocols via something like:

allow('a') {
    protocols attribute: 'href', value: 'http'
    protocols attribute: 'href', value: 'https'
}

or

allow('a') {
    protocols attribute: 'href', value: ['http', 'https']
}
ishults added a commit that referenced this issue Nov 12, 2014
Resolve issue #5.  Add addProtocol support to Config.

Includes tests.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant