Make Strategy_MakeWellFormed operate in place.
commitf8b47c64ddfc8d3b88ebcffcaf25a85474dd4625
authorEdward Z. Yang <edwardzyang@thewritingpot.com>
Fri, 27 Jun 2008 05:33:48 +0000 (27 01:33 -0400)
committerEdward Z. Yang <edwardzyang@thewritingpot.com>
Fri, 27 Jun 2008 05:33:48 +0000 (27 01:33 -0400)
treed7667c271dc625d8d6300fe9f60bfac948cab3d6
parenta5ceb1e22a605916d664411721be83d1dc1ca24a
Make Strategy_MakeWellFormed operate in place.

Previously, MakeWellFormed processed tokens and appended them onto an output
array, which was presumably immutable and inaccessible to Injectors. By
having MakeWellFormed operate directly on the input array, the strategy
saves memory and will also allow for a rewind implementation, as a unifying
the two arrays allows Injectors to easily determine an index behind them they'd
like to reset state to.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
NEWS
library/HTMLPurifier/Strategy/MakeWellFormed.php