<200c> and BOMs * * @param array|string $content * * @return array|string|string[] */ public static function remove_zero_space( $content ) { if ( is_array( $content ) ) { $content = array_map( __CLASS__ . '::remove_zero_space', $content ); return $content; } // Remove UTF-8 BOM if present if ( substr( $content, 0, 3 ) === "\xEF\xBB\xBF" ) { $content = substr( $content, 3 ); } $content = str_replace( "\xe2\x80\x8b", '', $content ); $content = str_replace( "\xe2\x80\x8c", '', $content ); $content = str_replace( "\xe2\x80\x8d", '', $content ); return $content; } }