donkeykong on 10/21/08
Last Edited at 10/21/08 07:59pm
function stripTagsAmendSpaces($str){ $str = trim($str); $str= strip_tags($str); return $str = preg_replace('/\\s{2,}/',' ',$str);}
Report this snippet Tweet
Comment:
You need to login to post a comment.