return (strcasecmp(substr($haystack, strlen($haystack) - strlen($needle)), $needle) === 0);
}
-/**
- * Same as nl2br(), but escapes < and >
- */
-function nl2br_escaped($html)
-{
- return str_replace('>', '>', str_replace('<', '<', nl2br($html)));
-}
-
/**
* htmlspecialchars wrapper
*/