You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 to true (the default value)
The text was updated successfully, but these errors were encountered:
jschroed91
changed the title
Purifier Config settings not having affect.
Purifier Config settings not having affect across all classes (e.g. TableDiff)
Feb 23, 2019
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)The text was updated successfully, but these errors were encountered: