PortableInfobox/includes/services/Sanitizers/NodeTitleSanitizer.php

16 lines
268 B
PHP

<?php
namespace PortableInfobox\Sanitizers;
class NodeTitleSanitizer extends NodeSanitizer {
/**
* @param $data
* @return mixed
*/
public function sanitize( $data ) {
$data[ 'value' ] = $this->sanitizeElementData( $data[ 'value' ] );
return $data;
}
}