- strip_tags: documentation ( source)
- trim: documentation ( source)
- html_entity_decode: documentation ( source)
<?php
function prepareForSearch(array $strings) {
return trim(html_entity_decode(strip_tags($params['name'] . ' ' . $params['lead'] . ' ' . $params['content'])));
}
echo prepareForSearch(array('©'));