Mantis 1.0.1 : Html tags in text fields

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Greg
Posts: 4
Joined: 01 Mar 2005, 08:28
Location: Toulouse, FRANCE

Mantis 1.0.1 : Html tags in text fields

Post 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.
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post 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.
Greg
Posts: 4
Joined: 01 Mar 2005, 08:28
Location: Toulouse, FRANCE

Post 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 ??
Post Reply