1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-10-16 06:26:08 +02:00

Implement Tables Module.

- Fix HTMLDefinition rendering of table children

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@714 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2007-02-04 16:23:26 +00:00
parent 315c55eeb1
commit a122243a89
5 changed files with 87 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ class HTMLPurifier_AttrCollection
// merge attribute collections that include others
$this->performInclusions($info[$name]);
// replace string identifiers with actual attribute objects
$this->expandStringIdentifiers($info[$name], $attr_types);
$this->expandIdentifiers($info[$name], $attr_types);
}
}
@@ -69,7 +69,7 @@ class HTMLPurifier_AttrCollection
unset($attr[0]);
}
function expandStringIdentifiers(&$attr, $attr_types) {
function expandIdentifiers(&$attr, $attr_types) {
foreach ($attr as $def_i => $def) {
if ($def_i === 0) continue;
if (!is_string($def)) continue;