mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-16 20:53:16 +00:00
21 lines
413 B
PHP
21 lines
413 B
PHP
<?php
|
|
|
|
class NodeHorizontalGroupSanitizer extends NodeSanitizer {
|
|
protected $allowedTags = [ 'a' ];
|
|
|
|
/**
|
|
* @param $data
|
|
* @return mixed
|
|
*/
|
|
public function sanitize( $data ) {
|
|
foreach ( $data[ 'labels' ] as $key => $label ) {
|
|
$sanitizedLabel = $this->sanitizeElementData( $label );
|
|
if ( !empty( $sanitizedLabel ) ) {
|
|
$data[ 'labels' ][ $key ] = $sanitizedLabel;
|
|
}
|
|
}
|
|
|
|
return $data;
|
|
}
|
|
}
|