HTML to Text conversion not working if mb_string not present (verb mb_split)

SVN:trunk[3993]
This commit is contained in:
Romain Quetiez
2016-04-08 12:02:29 +00:00
parent 272051ea99
commit e877ec431f

View File

@@ -1,6 +1,13 @@
<?php
namespace Html2Text;
if (!function_exists('mb_split'))
{
function mb_split($pattern, $subject, $limit = -1)
{
return preg_split('/'.$pattern.'/', $subject, $limit);
}
}
/**
* Replace all occurrences of the search string with the replacement string.
*