mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 20:09:44 +00:00
XW-41 handle experimental content
This commit is contained in:
parent
3026d6ce41
commit
c6aa0fb787
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue