I have the attached function to clean some titles from useless characters.
The problem is the the spanish/italian/genrman characters like áéáèéë.. are being removed too.
How can I modify this function to keep those characters ?
$str = strip_tags($str);
$str = preg_replace('/[^a-zA-Z0-9\s\']/','',$str);