Issue Bug Closed

#16970Wrong rendering of <PRE>

John Angel 02/10/07, 17:23 updated 09/18/13, 17:15

Description

HTML source of the page content contains the following code:

This is example for the code.
First row.
Second row.
&lt;SOME TAG&gt;

Correct rendering should leave this code “as it is” in output HTML.

With default configuration, Typo3 renders it inappropriately. The output HTML is:

</p>
<p>This is example for the code.
</p>
<p>First row.
</p>
<p>Second row.
</p>
<p>&lt;SOME TAG&gt;
</p>
<p>

Patch:

Open /typo3/sysext/css_styled_content/static/setup.txt

- Add “pre” to lib.parseFunc_RTE.externalBlocks

- Remove “pre” from
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.encapsTagList

(issue imported from #M4961)

Reviews 0

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