A library for comparing two HTML files/snippets and highlighting the differences using simple HTML. Includes support for comparing complex lists and tables
Seems like the Purifier config is not being passed down to "nested diff instances";
When a document is being processed new HtmlDiff instances and instances of other classes such as TableDiff are created, if the user provides a HTMLPurifier_Config when creating the top level diff its not passed down to any subsequent instances that are created.
For example the following code should ensure the entire document is returned instead of just the body content.
Seems like the Purifier config is not being passed down to "nested diff instances"; When a document is being processed new HtmlDiff instances and instances of other classes such as TableDiff are created, if the user provides a HTMLPurifier_Config when creating the top level diff its not passed down to any subsequent instances that are created.
For example the following code should ensure the entire document is returned instead of just the body content.
results in the following:
When you would expect the html/head tags to be included in the output.
Stepping through this with xdebug you notice that the PurifierConfig value
Core.ConvertDocumentToFragment
is set totrue
(the default value)