diff --git a/modules/filter.module b/modules/filter.module index 20037a1055fe457d3abb7e05e4af4b8a81daab61..f1e4183b304d7b4e6a1e6d921ae5ab8b2f55aa31 100644 --- a/modules/filter.module +++ b/modules/filter.module @@ -834,7 +834,7 @@ function _filter_html_settings($format) { function _filter_html($text, $format) { if (variable_get("filter_html_$format", FILTER_HTML_STRIP) == FILTER_HTML_STRIP) { // Allow users to enter HTML, but filter it - $text = strip_tags($text, variable_get("allowed_html_$format", '')); + $text = strip_tags($text, variable_get("allowed_html_$format", '<a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul>')); if (variable_get("filter_style_$format", FILTER_STYLE_STRIP)) { $text = preg_replace('/\Wstyle\s*=[^>]+?>/i', '>', $text); } diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 20037a1055fe457d3abb7e05e4af4b8a81daab61..f1e4183b304d7b4e6a1e6d921ae5ab8b2f55aa31 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -834,7 +834,7 @@ function _filter_html_settings($format) { function _filter_html($text, $format) { if (variable_get("filter_html_$format", FILTER_HTML_STRIP) == FILTER_HTML_STRIP) { // Allow users to enter HTML, but filter it - $text = strip_tags($text, variable_get("allowed_html_$format", '')); + $text = strip_tags($text, variable_get("allowed_html_$format", '<a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul>')); if (variable_get("filter_style_$format", FILTER_STYLE_STRIP)) { $text = preg_replace('/\Wstyle\s*=[^>]+?>/i', '>', $text); }