9 private $_exclude = array(
'colgroup' => 1,
'th' => 1,
'td' => 1,
'iframe' => 1);
15 $this->removeNbsp =
$config->get(
'AutoFormat.RemoveEmpty.RemoveNbsp');
16 $this->removeNbspExceptions =
$config->get(
'AutoFormat.RemoveEmpty.RemoveNbsp.Exceptions');
23 for ($i = $this->inputIndex + 1, $c = count($this->inputTokens); $i < $c; $i++) {
24 $next = $this->inputTokens[$i];
26 if ($next->is_whitespace)
continue;
27 if ($this->removeNbsp && !isset($this->removeNbspExceptions[$token->name])) {
28 $plain = str_replace(
"\xC2\xA0",
"", $next->data);
29 $isWsOrNbsp = $plain ===
'' || ctype_space($plain);
30 if ($isWsOrNbsp)
continue;
36 if (isset($this->_exclude[$token->name]))
return;
37 $this->attrValidator->validateToken($token, $this->config, $this->context);
38 $token->armor[
'ValidateAttributes'] =
true;
39 if (isset($token->attr[
'id']) || isset($token->attr[
'name']))
return;
40 $token = $i - $this->inputIndex + 1;
41 for ($b = $this->inputIndex - 1; $b > 0; $b--) {
42 $prev = $this->inputTokens[$b];