Wait, that issue is with 1.12alpha. Don't know if it exists with later versions.
D
----- Original Message ----
From: D Sledge <david.sledge(a)yahoo.com>
To: Wikimedia developers <wikitech-l(a)lists.wikimedia.org>
Sent: Tuesday, August 12, 2008 2:45:41 PM
Subject: Re: [Wikitech-l] PPNode_DOM to wikitext
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(a)wikimedia.org>
To: Wikimedia developers <wikitech-l(a)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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iEYEARECAAYFAkih6qsACgkQwRnhpk1wk47lbQCgvTf8arvB+xHTUu0veyVaS81p
/GkAn2cvM4Me4w/JKLdem2vBPTXfQqfO
=+zLb
-----END PGP SIGNATURE-----
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l