Date: 07/23/05 (PHP Community) Keywords: php Hey everyone! Ha Ha! What I was trying to do was to write a more robust version of the strip_tags() function that would also allow you to declare allowable attributes (such as "href" for and anchor tags). So, restated, what I'm trying to do is take a string like and remove EVERYTHING but this: I apologize for the totally brain-dead way in which I stated the original question and I promise to think (more) before I post. It's just that trying to explain this concept to some of the non-geeks that I work with kinda got stuck in my brain. /me puts on asbestos suit and ducks Source: http://www.livejournal.com/community/php/324373.html
|