12 $this->removeNbsp =
$config->get(
'AutoFormat.RemoveEmpty.RemoveNbsp');
13 $this->removeNbspExceptions =
$config->get(
'AutoFormat.RemoveEmpty.RemoveNbsp.Exceptions');
20 for (
$i = $this->inputIndex + 1, $c = count($this->inputTokens);
$i < $c;
$i++) {
23 if (
$next->is_whitespace)
continue;
24 if ($this->removeNbsp && !isset($this->removeNbspExceptions[
$token->name])) {
25 $plain = str_replace(
"\xC2\xA0",
"",
$next->data);
26 $isWsOrNbsp = $plain ===
'' || ctype_space($plain);
27 if ($isWsOrNbsp)
continue;
33 if (
$token->name ==
'colgroup')
return;
34 $this->attrValidator->validateToken(
$token, $this->config, $this->context);
35 $token->armor[
'ValidateAttributes'] =
true;
36 if (isset(
$token->attr[
'id']) || isset(
$token->attr[
'name']))
return;
38 for ($b = $this->inputIndex - 1; $b > 0; $b--) {
39 $prev = $this->inputTokens[$b];