regex function related to fgetss machinery?
| From: | Joey | Date: | Sat, 11 Sep 1999 16:28:10 +0000 |
| Subject: | regex function related to fgetss machinery? | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-4325@lists.php.net to get a copy of this message | ||
Hi, guys,
I was talking to one of the organizations we host for,
and they were asking about a function that sounded useful,
so I thought I'd bring it up here...I know, you're probably
done adding features, but thought it was worth a shot.
In the database, some of the BLOB fields have HTML tags
so that output to the page is formatted...in a few cases,
I acutally hold entire HTML pages in the database.
Users of the site can "email to a friend", but if the
info has tags in it, it really looks goofy (mainly bcz
I use pine, and am strictly opposed to sending HTML mail
by default...)
I had planned on using strip_tags() to fix this, but
the people who own the site _WANT_ to send HTML mail...
(*shudder*). So, how hard would it be to implement a regex
function that used the same machinery as fgetss to check for
HTML tags? Just return true or false? It seems like this
would actually be like just stopping short of strip_tags().
I don't know...maybe it's a useless feature. I will most likely
just write an ereg() regex for it, but I just thought it may be
a useful and easy to implement feature...if I am up in the night,
ignore me. :)
--Joey Smith