<pre> tag on MediaWiki shows <br/> tags in result

时间:2019-04-14 16:49:44

标签: mediawiki mediawiki-extensions

First of all i'm not 100% sure if this is the right place for my question so sorry if i'm wrong!

I installed a fresh media wiki on my server and added TinyMCE editor extension to it (https://www.mediawiki.org/wiki/Extension:TinyMCE). When i create a new page with some text inside the <pre> tag, it contains <br> tags when i save the page an view the result.

This problem occurs when i "insert" a <pre> block with TinyMCE but also when i just type it like this: <pre> some tekst line 1(enter) some tekst line2</pre>

Interesting enough, the block is formatted correctly in the edit view when i edit the page after i added the block. So there is a difference shown between the edit mode view and the preview/live view.

Can anyone help me out with this problem ?

Thanks in advance!

0 个答案:

没有答案