Does htmlentities() allow whitespace? If not, is there a similar function that will not convert whitespace, or would you just need to use preg_match()?
Help @Joseph_Witchard spread the word by sharing this article on Twitter...