Given an artifact with a Text field written in HTML (or Markdown) format, when the text field is added to the Cards semantic, when I browse it in Kanban or Planning view, all HTML tags are stripped. As a result, I cannot click on links or Tuleap references, which has been frustrating users for a long time (as long as card fields have existed in fact).
We should allow only Anchor tags (links) to be properly parsed, instead of removing them.
Stripping HTML tags was done for two reasons:
- A technical reason. When users type text in the "filter" box in Kanban or Planning, the searched text is highlighted in card fields. Historically, this highlighting could not handle HTML, so if a user typed
a
in the search field, it would break up HTML tags as well, leading to a soup of broken HTML tags (<<span class="highlight">a</span> href="https://example.com">Link</<span class="highlight">a</span>>
).
- A design reason. If we allow all tags, users might include large images, lists, or titles in their HTML, which will completely break up the Card design. Allowing only Anchor tags (links) however should preserve it, as they display inline.