Update tablewiz.php

This commit is contained in:
Namhyeon Go 2018-02-26 14:10:29 +09:00 committed by GitHub
parent f9c280c6bf
commit 5947c1be7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,8 @@
if(!function_exists("tablewiz_cut_str")) { if(!function_exists("tablewiz_cut_str")) {
function tablewiz_cut_str($str, $strlimit=0) { function tablewiz_cut_str($str, $strlimit=0) {
if($strlimit > 0) { if($strlimit > 0) {
$str = substr($str, 0, $strlimit); // do not use html tag when use cut_str
$str = substr(strip_tags($str), 0, $strlimit);
} }
return $str; return $str;