34 private $_exclude = array(
'colgroup' => 1,
'th' => 1,
'td' => 1,
'iframe' => 1);
46 $this->removeNbsp =
$config->get(
'AutoFormat.RemoveEmpty.RemoveNbsp');
47 $this->removeNbspExceptions =
$config->get(
'AutoFormat.RemoveEmpty.RemoveNbsp.Exceptions');
61 for ($i = count($this->inputZipper->back) - 1; $i >= 0; $i--, $deleted++) {
62 $next = $this->inputZipper->back[$i];
64 if ($next->is_whitespace) {
67 if ($this->removeNbsp && !isset($this->removeNbspExceptions[$token->name])) {
68 $plain = str_replace(
"\xC2\xA0",
"", $next->data);
69 $isWsOrNbsp = $plain ===
'' || ctype_space($plain);
78 if (isset($this->_exclude[$token->name])) {
81 $this->attrValidator->validateToken($token, $this->config, $this->context);
82 $token->armor[
'ValidateAttributes'] =
true;
83 if (isset($token->attr[
'id']) || isset($token->attr[
'name'])) {
86 $token = $deleted + 1;
87 for ($b = 0, $c = count($this->inputZipper->front); $b < $c; $b++) {
88 $prev = $this->inputZipper->front[$b];