Jan 21, 2005 #1 manicleek Technical User Joined Jun 16, 2004 Messages 143 Location GB Me again I'm just wondering how I can get PHP to ignore html tags on output from a db. E.G. say I'm outputting a news story from a db that has image source in tags embedded in the text but I don't want to show the images on the output page
Me again I'm just wondering how I can get PHP to ignore html tags on output from a db. E.G. say I'm outputting a news story from a db that has image source in tags embedded in the text but I don't want to show the images on the output page
Jan 21, 2005 1 #2 cLFlaVA Programmer Joined Jun 14, 2004 Messages 6,450 Location US Code: echo striptags($variable); *cLFlaVA ---------------------------- [tt]tastes great, less filling.[/tt] Upvote 0 Downvote
Code: echo striptags($variable); *cLFlaVA ---------------------------- [tt]tastes great, less filling.[/tt]
Jan 21, 2005 #3 kenrbnsn Technical User Joined Jun 7, 2002 Messages 606 Location US Or Code: echo htmlentities($variable); if you want to display the tags. Ken Upvote 0 Downvote