0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-13 00:38:42 +00:00
htmlpurifier/library/HTMLPurifier/Strategy
Edward Z. Yang cd4500457e More refactoring to MakeWellFormed and Injectors; they work better than ever now!
Major paradigm shift in this commit is bailing ship on the "skip" integers, which
were extremely buggy and error prone, and simply mark tokens as processed or
not processed by injectors. Other notable changes:

- Removed ad hoc decrements to inputIndex in favor of $reprocess flag variable
- Moved rewind outside of processToken()
- Make rewind properly ignore all other injectors
- Cleanup end of document code
- Reconfigure injector loops to account for skips and rewinds
- Punt the empty to start/end transformation
- Completely rewrite processToken to be array based
- Added skip and rewind member variables to tokens
- Fixed a longstanding bug with remove empty!

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
2008-10-01 03:14:28 -04:00
..
Composite.php [3.1.0] The bulk of autoload support added 2008-01-27 01:54:41 +00:00
Core.php [3.1.0] The bulk of autoload support added 2008-01-27 01:54:41 +00:00
FixNesting.php [3.1.0] The bulk of autoload support added 2008-01-27 01:54:41 +00:00
MakeWellFormed.php More refactoring to MakeWellFormed and Injectors; they work better than ever now! 2008-10-01 03:14:28 -04:00
RemoveForeignElements.php [3.1.2] Implement comments when %HTML.Trusted is on. 2008-06-25 23:12:19 -04:00
ValidateAttributes.php [3.1.0] The bulk of autoload support added 2008-01-27 01:54:41 +00:00