PortableInfobox/includes/services/Sanitizers/NodeTitleSanitizer.php

16 lines
270 B
PHP
Raw Normal View History

2015-12-23 14:54:03 +00:00
<?php
namespace PortableInfobox\Sanitizers;
class NodeTitleSanitizer extends NodeSanitizer {
2015-12-23 14:54:03 +00:00
/**
2018-08-16 09:25:53 +00:00
* @param mixed $data
2015-12-23 14:54:03 +00:00
* @return mixed
*/
public function sanitize( $data ) {
2018-08-16 09:25:53 +00:00
$data['value'] = $this->sanitizeElementData( $data['value'] );
2015-12-23 14:54:03 +00:00
return $data;
}
}