Add Parser::resetOutput() and getStripState()
authorTim Starling <tstarling@wikimedia.org>
Mon, 12 Aug 2019 06:10:22 +0000 (16:10 +1000)
committerTim Starling <tstarling@wikimedia.org>
Tue, 13 Aug 2019 03:40:07 +0000 (13:40 +1000)
commitca5836a83eec78f92a7165f9e2d61361244a39ae
tree7ea0c5bc21ab4e1d01227738205a51b338c453ba
parent91ec64c80719f002426ada7aa1ed62b465c66a0a
Add Parser::resetOutput() and getStripState()

For Parsoid's convenience, add to Parser resetOutput(), getStripState()
and a $revId parameter to startExternalParse().

Parser::resetOutput() allows Parsoid to get the ParserOutput of each
template without resetting the DOM cache.

Change-Id: I084676acdc8db185b8efd9b97b7d5326afd2a997
includes/parser/Parser.php