Excellent! Would've taken me a while to figure that one out (if ever). One issue is that tags aren't being translated back. They end up as the placeholder "UNIQx0x0-tagname-x0x0-QINU" strings.
Thank you very much,
D
----- Original Message ---- From: Brion Vibber brion@wikimedia.org To: Wikimedia developers wikitech-l@lists.wikimedia.org Sent: Tuesday, August 12, 2008 1:55:23 PM Subject: Re: [Wikitech-l] PPNode_DOM to wikitext
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
D Sledge wrote:
MediaWiki: 1.12.0 PHP: 5.2.4 MySQL: 5.0.45
So the method Parser::preprocessToDom converts wikitext to a PPNode_DOM object. Is there a method that does the reverse (i.e. transforms a PPNode_DOM object to wikitext)?
$frame = $wgParser->getPreprocessor()->newFrame(); $frame->expand( $node, PPFrame::RECOVER_ORIG );
- -- brion
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org