Jan 21, 2005 #1 manicleek Technical User Jun 16, 2004 143 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 Jun 14, 2004 6,450 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 Jun 7, 2002 606 US Or Code: echo htmlentities($variable); if you want to display the tags. Ken Upvote 0 Downvote