HTML Purifier Drupal Module

To test HTML Purifier, I created a simple Drupal module. This module adds a new filter that can be used in an input format. Drupal users will know what this means ;)

Currently the module is very simple, there are no configuration options. It just runs with the default settings. If there is enough interest, I'll improve the module and add it to the drupal CVS repository.

Some things on my personal TODO list:

  • Implement some of the configuration options as filter settings
  • Test with the WYSIWYG editors that are available in Drupal
  • Test performance. This library is rather large compared to the default kses-based filter that is included in drupal core. Luckily Drupal has a built-in filter cache so on most pages the impact will be limited.
  • Have a closer look at the code
  • Try to break it ;)

Download

See the project page

filed under

Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.