Hi gang:
I have a client who over the years thought it was great to enter html
tags directly into his database via his CMS for display in his web
site.
Now, he has a mess with some data being shown one way, when he wants
it shown another. Plus, not all the tags are well formed and some are
On Sat, 2007-06-23 at 00:16 -0400, tedd wrote:
Hi gang:
I have a client who over the years thought it was great to enter html
tags directly into his database via his CMS for display in his web
site.
Now, he has a mess with some data being shown one way, when he wants
it shown another.
You can use something like html_tidy to make the code sane, and strip_tags()
to remove tags you don't want him using for whatever reason. As for changing
b to i because the style guide changed, well, you're on your own there
without some really trippy regexing that is well beyond my
3 matches
Mail list logo