strip html tags function php


Few useful php functions in day today life..! /*This function strip html tags you want , Inside text area. In database those tags will not inserted */ function strip_only($str) { $tags = array('html','body','style','div', 'table','tr','td','script','img'); if(!is_array($tags)) { $tags = (strpos($str, '>') !== false ? explode('>', str_replace('#is', '', $str); return $str; } […]

Few useful php functions in day today life..!