#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Delfgauw, The Netherlands
    Posts
    2
    Rep Power
    0
    I am working on a page and i can get info out of a sql database. but i want to disable the html tags that could be in this info..
    (someone did </table> and it messed up my page )

    i tried using addslashes but that didn't do it =(.. could someone help me ? or give me an url ?
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    18
    Use htmlentities() on the text before displaying it.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Delfgauw, The Netherlands
    Posts
    2
    Rep Power
    0
    ah thnx.. i'll look into that

Similar Threads

  1. seperate html tags from text in string
    By sweetpotatoe in forum PHP Development
    Replies: 3
    Last Post: January 28th, 2004, 10:39 AM
  2. How to get client email??Help plz
    By Gecko22 in forum ASP Programming
    Replies: 12
    Last Post: January 22nd, 2004, 01:40 PM
  3. not returning records when it should
    By aliaga61 in forum ASP Programming
    Replies: 3
    Last Post: January 16th, 2004, 10:57 AM
  4. 'Object required' error
    By aliaga61 in forum ASP Programming
    Replies: 1
    Last Post: January 16th, 2004, 08:48 AM
  5. Close unclosed html tags?
    By netsparc in forum PHP Development
    Replies: 5
    Last Post: January 6th, 2004, 08:13 PM

IMN logo majestic logo threadwatch logo seochat tools logo