Issue Bug Closed

#72825format.html-ViewHelper creates unnecessary HTML

Dominik Hahn 01/20/16, 10:01 updated 04/01/16, 13:38

Description

In the Fluid templates, the format.html ViewHelper is used in several places to convert a simple string to a clickable link.

Taken from the “SearchResult” partial:

<dd class="tx-indexedsearch-text-item-path"><f:format.html>{row.path}</f:format.html></dd>

creates

<dd class="tx-indexedsearch-text-item-path"><p><a href="/sites/test/index.php?id=20">/Meta-Navigation/Impressum</a></p></dd>

The extra paragraph makes it harder to style the output. The ViewHelper is used more than once and in some places it generates even more paragraphs.

I have solved it by using the format.raw-ViewHelper instead, the ouput is still the same (minus the extra paragraph) but maybe using a link-ViewHelper instead of pre-rendered paths is the way to go?!

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.