Click to See Complete Forum and Search --> : ignore html


hedlikeahole
10-14-2005, 04:48 AM
hi, i have some html stored in a database which is sent directly from a html editor on a page, when displaying the html i want to display it without any of the styling which is inside the html tags. is there a way of ignoring all of the html tags in a certain block, whilst still showing what is inbetween them. eg:

<span style="font-size:7em">TEXT</span>

i want to ignore the tags and display the word 'TEXT' as the default size


????

Fang
10-14-2005, 05:47 AM
Put this in the CSS:
span {font-size:1em !important;}

hedlikeahole
10-14-2005, 06:31 AM
nah man, the html will be put in by somebody else, theres no way of overruling every possible thing they can do, that was only a simple example. im using cute editor, the user can make tables, put images in, anything really, i just want to disable all tags
cheers anyway

felgall
10-14-2005, 04:26 PM
Why not search for any HTML tags in the code and strip them out to just leave the text.

hedlikeahole
10-17-2005, 03:14 AM
hmm, please elaborate

felgall
10-17-2005, 03:29 PM
Which server sidelanguage are you using to retrieve the HTML from the database?