Преглед изворни кода

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3993 a333f486-631f-4898-b8df-5754b55c2be0
romainq пре 9 година
родитељ
комит
48acd724d1
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      application/Html2Text.php

+ 7 - 0
application/Html2Text.php

@@ -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.
  *