Hi everybody,
In text fields Description, Steps to reproduce, Bug Notes I would like to use some html tags to format my text. Some tags works (<b>, <i>, <u>) but many others don't (<s> for strike, <td>, <tr> for instance)...
In the MySQL database, the whole text is save with tags but then how does it work ? Whot interprets html tags ? The internet browser ? Mantis ?
In an other topic I've discovered that in strings_api.php Mantis makes some modification (on <br>, &nlsp...) before the text is displayed. Does it supress some tags ? Why the <s> tag is seen like this instead of being interpreted ?
Thanks for help.
Mantis 1.0.1 : Html tags in text fields
Moderators: Developer, Contributor
Hi Greg:
Not sure about the second part of your question (or if it is ultimately answered by the answer to the first part) but the HTML tags that are kept / stripped are determined by the $g_html_valid_tags configuration setting.
Copy the line that sets this from config_defaults_inc.php to config_inc.php and edit that line to set which tags you wish to interpret.
Hope that helps,
Lincoln.
Not sure about the second part of your question (or if it is ultimately answered by the answer to the first part) but the HTML tags that are kept / stripped are determined by the $g_html_valid_tags configuration setting.
Copy the line that sets this from config_defaults_inc.php to config_inc.php and edit that line to set which tags you wish to interpret.
Hope that helps,
Lincoln.