FastFeed\Processor\StripTagsProcessor::setAllowedTagsForIntro PHP Méthode

setAllowedTagsForIntro() public méthode

public setAllowedTagsForIntro ( mixed $allowedTags )
$allowedTags mixed
    public function setAllowedTagsForIntro($allowedTags)
    {
        $this->allowedTags['intro'] = $allowedTags;
    }

Usage Example

 /**
  * @dataProvider dataProvider
  */
 public function testProcess($expected, $actual, $allowedTags)
 {
     $this->items[0]->setIntro($actual);
     $this->items[0]->setContent($actual);
     $this->processor->setAllowedTagsForContent($allowedTags);
     $this->processor->setAllowedTagsForIntro($allowedTags);
     $this->items = $this->processor->process($this->items);
     $this->assertEquals($expected, $this->items[0]->getIntro());
     $this->assertEquals($expected, $this->items[0]->getContent());
 }
All Usage Examples Of FastFeed\Processor\StripTagsProcessor::setAllowedTagsForIntro