HTML Purifier module: added support for embedded youtube videos

HTML Purifier 1.4 contains a filter that allows users to include embedded youtube videos. I added an option to the drupal module so that people can use this feature if they want. It is disabled by default because using this isn't without risk.

There is a slight issue when drupals line break filter is enabled and executed before HTML Purifier. This requires a simple change to the youtube filter.

filed under

HTML Purifier Module Update

I received some feedback on the HTML Purifier module. As it turns out, I managed to introduce a bug in such a simple module. I think the holidays are to blame ;)

So I fixed the bug, rewrote some code and added a couple of settings.

The new version is now in the SVN repository. See the project page for more info. As always, all comments are welcome.

Now, more testing!

filed under

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