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, 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
You'd need to write a function with a serverside language that pulls the info from the database, parses it, and removes all tags, then outputs the page without them. No small feat. What serverside languages does your host support and what database is being used?
If you can use PHP for server-side scripting, it has a handy built-in function called htmlentities() that will do this for you.
PS: I'm genius enough to know that there is no "o" in "genius".
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
im using asp.net and an sql server database, can i put anything into the stored procedure to cut out anything inside <> tags which are returned from the select statement??
Bookmarks