How do I add 'javascript' url scheme in HT

2019-08-26 19:26发布

问题:

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.

回答1:

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