Include strong in the list of valid html tags
authorRobert Munteanu <[email protected]>
Wed, 8 Jun 2011 09:12:44 +0000 (8 12:12 +0300)
committerRobert Munteanu <[email protected]>
Wed, 8 Jun 2011 09:12:44 +0000 (8 12:12 +0300)
The current list of html_valid_tags and html_valid_tags_single_line
does not include strong, but includes b . On the other hand, it includes
both i and em. For consistency, this should be adjusted. Also, rich text
editors have the tendency to produce markup which uses strong rather
than b, which is then escaped by MantisBT.

Fixes #13062: Make strong a valid html tag by default

config_defaults_inc.php

index 5e3c3a0..a8db7a5 100644 (file)
@@ -1704,7 +1704,7 @@ $g_html_make_links = ON;
  * do NOT include tags that require attributes
  * @global string $g_html_valid_tags
  */
-$g_html_valid_tags = 'p, li, ul, ol, br, pre, i, b, u, em';
+$g_html_valid_tags = 'p, li, ul, ol, br, pre, i, b, u, em, strong';
 
 /**
  * These are the valid html tags for single line fields (e.g. issue summary).
@@ -1712,7 +1712,7 @@ $g_html_valid_tags = 'p, li, ul, ol, br, pre, i, b, u, em';
  * do NOT include tags that require attributes
  * @global string $g_html_valid_tags_single_line
  */
-$g_html_valid_tags_single_line = 'i, b, u, em';
+$g_html_valid_tags_single_line = 'i, b, u, em, strong';
 
 /**
  * maximum length of the description in a dropdown menu (for search)