Re: Global parser not initialized on special pages?

Bartosz Dziewoński <[email protected]>
Newsgroups gmane.org.wikimedia.mediawiki
Message-ID <[email protected]>
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 -- [email protected]
List information: https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.