.?@si', // Strip out javascript // '@<[\/\!]?[^<>]?>@si', // Strip out HTML tags // '@@siU', // Strip style tags properly // '@@', // Strip multi-line comments including CDATA // // '@]+\>@si' // ); // $text = preg_replace($search, '', $document); // return htmlspecialchars_decode($text); // } // function short_content($str, $limit) { // // return preg_replace('/<(.+?)[\s]*\/?[\s]*>/si', '', substr(html2txt($str), 0, $limit)); // // return substr(html2txt($str), 0, $limit); // return substr(preg_replace('/]+\>/', '', html2txt($str)), 0, $limit); // } ?>
Link Bakorwil