From e547e8adfa8ebf8f40b48ea2495dea54993fa9bc Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 1 Aug 2012 08:29:32 +0000 Subject: [PATCH] if balancing is switched on, allow span element everywhere --- phpgwapi/inc/htmLawed/htmLawed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/htmLawed/htmLawed.php b/phpgwapi/inc/htmLawed/htmLawed.php index f787cde7e2..0e05329357 100644 --- a/phpgwapi/inc/htmLawed/htmLawed.php +++ b/phpgwapi/inc/htmLawed/htmLawed.php @@ -183,8 +183,8 @@ for($i=-1, $ci=count($t); ++$i<$ci;){ $p = array_pop($q); $q[] = $p; if(isset($cS[$p])){$ok = $cS[$p];} - elseif(isset($cI[$p])){$ok = $eI; $cI['del'] = 1; $cI['ins'] = 1;} - elseif(isset($cF[$p])){$ok = $eF; unset($cI['del'], $cI['ins']);} + elseif(isset($cI[$p])&&$p!='span'){$ok = $eI; $cI['del'] = 1; $cI['ins'] = 1;} + elseif(isset($cF[$p])||$p=='span'){$ok = $eF; unset($cI['del'], $cI['ins']);} elseif(isset($cB[$p])){$ok = $eB; unset($cI['del'], $cI['ins']);} if(isset($cO[$p])){$ok = $ok + $cO[$p];} if(isset($cN[$p])){$ok = array_diff_assoc($ok, $cN[$p]);}