瀏覽代碼

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
 <?php
 namespace Html2Text;
 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.
  * Replace all occurrences of the search string with the replacement string.
  *
  *