Index: modules/filter/filter.install =================================================================== RCS file: /cvs/drupal/drupal/modules/filter/filter.install,v retrieving revision 1.7 diff -u -p -r1.7 filter.install --- modules/filter/filter.install 15 Mar 2008 12:31:28 -0000 1.7 +++ modules/filter/filter.install 31 Mar 2008 19:31:45 -0000 @@ -106,3 +106,12 @@ function filter_update_7000() { db_add_field($ret, 'filter_formats', 'weight', array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny')); return $ret; } + +/** + * Break out "escape HTML filter" option to its own filter. + */ +function filter_update_7001() { + $ret = array(); + // @todo + return $ret; +} Index: modules/filter/filter.module =================================================================== RCS file: /cvs/drupal/drupal/modules/filter/filter.module,v retrieving revision 1.207 diff -u -p -r1.207 filter.module --- modules/filter/filter.module 13 Mar 2008 21:26:08 -0000 1.207 +++ modules/filter/filter.module 31 Mar 2008 19:31:46 -0000 @@ -6,14 +6,14 @@ * Framework for handling filtering of content. */ -// This is a special format ID which means "use the default format". This value -// can be passed to the filter APIs as a format ID: this is equivalent to not -// passing an explicit format at all. +/** + * Special format ID which means "use the default format". + * + * This value can be passed to the filter APIs as a format ID: this is + * equivalent to not passing an explicit format at all. + */ define('FILTER_FORMAT_DEFAULT', 0); -define('FILTER_HTML_STRIP', 1); -define('FILTER_HTML_ESCAPE', 2); - /** * Implementation of hook_help(). */ @@ -171,100 +171,95 @@ function filter_filter_tips($delta, $for global $base_url; switch ($delta) { case 0: - if (variable_get("filter_html_$format", FILTER_HTML_STRIP) == FILTER_HTML_STRIP) { - if ($allowed_html = variable_get("allowed_html_$format", '