XW-41 handle experimental content

This commit is contained in:
Bogna Knychala 2016-02-12 17:13:48 +01:00
parent 3026d6ce41
commit c6aa0fb787
2 changed files with 3 additions and 1 deletions

View file

@ -4,7 +4,8 @@ class NodeHeroImageSanitizer extends NodeSanitizer {
protected $allowedTags = [ 'a' ];
protected $selectorsWrappingTextToPad = [ 'li' ];
protected $selectorsWrappingAllowedFeatures = [ 'sup[@class="reference"]' ];
protected $selectorsForFullRemoval = [ 'script', 'span[@itemprop="duration"]' ];
protected $selectorsForFullRemoval =
[ 'script', 'span[@itemprop="duration"]', '*[contains(@data-component,"article-media-gallery")]'];
/**
* @param $data

View file

@ -19,6 +19,7 @@ class SanitizerBuilder {
case 'image':
return new NodeImageSanitizer();
case 'hero-mobile':
case'hero-mobile-experimental':
return new NodeHeroImageSanitizer();
default:
return new PassThroughSanitizer();