On 2021-06-14 17:34, Sebastian Trueg wrote:
With a fresh parser (I am not rendering messages but a template) it works. However, the parser always wraps my result in a <p> tag (I already removed the <div> via "nowrap" in ParserOutput::getText).

Can I tell the parser to not do that or do I need to manually unwrap the text?

You can use Parser::stripOuterParagraph( $html ) to do it.

--
Bartosz Dziewoński
_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
List information: 
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/

Reply via email to