from the attribute, I would rather expect it to // remove the style attribute ( is well-formed XML as far as I can tell), however this is not dangerous. $filtered = filter_xss('

', array('p')); $this->assertNoNormalized($filtered, 'style', t('HTML filter attributes removal evasion -- filter not distinguishing quotes.')); $filtered = filter_xss('

', array('p')); $this->assertEqual($filtered, '

', t('HTML filter -- filter does not break markup.')); $filtered = filter_xss('&#D;', array('p')); $this->assertEqual($filtered, '&#D;', t('HTML filter -- filter recognizes numerical entities.')); // TODO: I have huge doubts about allowing some HTML attributes. $filtered = filter_filter('process', 0, 'no_such_format', '