Try htmlentities() or htmlspecialchars(), which is what I use.

At 07:54 AM 11/20/2001, Joe Van Meer wrote:
>Hi there...I have a db filled with various HTML code examples, tags, etc...
>how would I format it so that it would appear like <A href='index.php'>Link
>One</a>. I was using the strip_tags() function and quickly found out that
>this wasn't the best way to do it :)
>Cheers, Joe:)
>PHP Database Mailing List (
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

Richard S. Crawford
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford

"It is only with the heart that we see rightly; what is essential is 
invisible to the eye."  --Antoine de Saint Exupéry

"Push the button, Max!"

PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to