snimavat / html-cleaner

Html cleaner - Whitelist based html sanitizer grails plugin
3 stars 2 forks source link

Resolve issue #5. Add addProtocol support to Config. #6

Closed ishults closed 10 years ago

ishults commented 10 years ago

This allows for adding protocols via something like:

allow('a') {
    protocols attribute: 'href', value: ['http', 'https']
    // Or
    protocols attribute: 'href', value: 'http'
}
ishults commented 10 years ago

I merged it via the GitHub interface.

Looks good as far as I can tell. I updated the version number in HtmlCleanerGrailsPlugin.groovy as well.

snimavat commented 10 years ago

Published new version to grails central