I have this code: $string = strip_tags($string); I cannot use it on UTF-8 text. Error returned by validator: 'utf8' codec can't decode bytes in position 1026-1027: invalid data (maybe a high-bit character?) Any idea how to fix this?
Try to use other functions instead of strip_tags. There is many examples http://php.net/manual/fa/function.strip-tags.php