the default HTML filter doesn't allow for more advanced editing available to those using a WYSIWYG. The HTML filter will strip out any inline styles, even simple ones (text-align: center;). The solutions seems to to either use the Full HTML filter, which provides no safety or cleanup, or to go with another filter. There are two options I know about:

http://drupal.org/project/htmlpurifier
http://drupal.org/project/wysiwygfilter

Comments

frankcarey’s picture

Looks like HTML Purifier is a great candidate for use as a alternate HTML Filter for Wysiwyg. It keeps out scary code (supposedly), as well as cleaning up any non strict html. Pretty much turn it on, replace the input format HTML Filter with this one (check one off, and the other on) and go. It looks like it could be tricky to configure it if you were using something that might not output possibly unsafe HTML, like video or audio embeds.

sittard’s picture

The WYSIWYG Filter can be located here: http://drupal.org/project/wysiwyg_filter