1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-05 21:57:26 +02:00

Add $config and $context to TagTransform transform() calls.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@497 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2006-10-22 15:56:38 +00:00
parent 8256ca4376
commit 6ff78d2f79
3 changed files with 52 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ class HTMLPurifier_Strategy_RemoveForeignElements extends HTMLPurifier_Strategy
// DEFINITION CALL
$token = $definition->
info_tag_transform[$token->name]->
transform($token);
transform($token, $config, $context);
} elseif ($escape_invalid_tags) {
// invalid tag, generate HTML and insert in
$token = new HTMLPurifier_Token_Text(