View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0009418 | mantisbt | other | public | 2008-07-18 07:31 | 2018-03-31 19:58 |
| Reporter | klkl | Assigned To | vboctor | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | won't fix | ||
| Product Version | 1.1.2 | ||||
| Summary | 0009418: Handling of HTML in issue descriptions is completely broken | ||||
| Description | It's not possible to sanely report HTML-related bugs using Mantis, because it unescapes entities when it shouldn't and does that inconsistently. Both cases: < b >test< / b > result in bold text. I'd expect first one to be interpreted as bold text and the second one to show source code. On the other hand, this is not interpreted as HTML: but that is: resulting in the same rendering as example without entities. And none of this is consistent with formatting of text in e-mails and RSS. | ||||
| Tags | bbcode | ||||
|
I think this is mostly by design. By default, Mantis allows reporters to use bold, italics and such in bug reports and notes by using the usual HTML tags. This is because the $g_html_valid_tags variable in the config file comes preset to the value "p, li, ul, ol, br, pre, i, b, u". But as you see, this isn't so great when you want to paste raw HTML source code into your bug description and have it preserved as source that users can see. For those uses, you should clear out the $g_html_valid_tags variable. |
|
|
There will be plugins in the future that allows different ways to format text. Hence, you should disable the HTML formatting and use bbcode or something similar (if required at all). Please confirm if this resolves your issue. |
|
|
Not exactly. The core of the problem is that HTML entities aren't preventing code from being intepreted as HTML. If < b > makes text bold, then & lt ; b & gt ; should result in visible source. They can't both do the same thing - that doesn't follow HTMLs logic and makes things more unpredictable. |
|
|
We now support markdown instead of html. |
|