Search code examples
drupal-moduleshtmlpurifier

How do I add 'javascript' url scheme in HTML purifier module in Drupal?


How can I can add the "javascript:xyz" url format for the URI.AllowedSchemes in HTML purifier module in drupal ?

I suppose this is the file I should modify URI.AllowedSchemes or is there any other config change I need to make. This is for the site moderator to publish bookmarklets and will not be exposed to outside world.


Solution

  • http://htmlpurifier.org/docs/enduser-uri-filter.html