config->set('HTML.TargetNoreferrer', false); $this->config->set('HTML.TargetNoopener', true); $this->config->set('Attr.AllowedFrameTargets', '_blank'); } public function testNoreferrer() { $this->assertResult( 'x', 'x' ); } public function testNoreferrerNoDupe() { $this->config->set('Attr.AllowedRel', 'noopener'); $this->assertResult( 'x', 'x' ); } public function testTargetBlankNoreferrer() { $this->config->set('HTML.TargetBlank', true); $this->assertResult( 'x', 'x' ); } public function testNoTarget() { $this->assertResult( 'x', 'x' ); } } // vim: et sw=4 sts=4