Page 1 of 1

Mantis 1.0.1 : Html tags in text fields

Posted: 30 Mar 2006, 06:32
by Greg
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.

Posted: 30 Mar 2006, 16:02
by Narcissus
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.

Posted: 31 Mar 2006, 06:56
by Greg
Yes ! It works for the strike (<s>) tag. Thank you. I didn't know this part of the config file.

But it doesn't work for table, tr, and td tags... It means it is not possible to describe tables in text fields ??