日期:2011-12-09 浏览次数:20643 次
移除 HTML 标签
- $text = strip_tags($input, "");
- function GetBetween($content,$start,$end){
- $r = explode($start, $content);
- if (isset($r[1])){
- $r = explode($end, $r[1]);
- return $r[0];
- }
- return '';
- }
- $url = "Jean-Baptiste Jung (http://www.webdevcat.com)";
- $url = preg_replace("#http://([A-z0-9./-]+)#", '<a href="http://www.catswhocode.com/blog/$1" style="font-size: 12px; vertical-align: baseline; background-color: transparent; margin: 0px; padding: 0px; color: #3777af; text-decoration: none; font-weight: bold">$0</a>', $url);
- function split_to_chunks($to,$text){
- $total_length = (140 - strlen($to));
- $text_arr = explode(" ",$text);
- $i=0;
- $message[0]="";
- foreach ($text_arr as $word){