/    Sign up×
Community /Pin to ProfileBookmark

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

????

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@FangOct 14.2005 — Put this in the CSS:
span {font-size:1em !important;}
Copy linkTweet thisAlerts:
@hedlikeaholeauthorOct 14.2005 — 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
Copy linkTweet thisAlerts:
@felgallOct 14.2005 — Why not search for any HTML tags in the code and strip them out to just leave the text.
Copy linkTweet thisAlerts:
@hedlikeaholeauthorOct 17.2005 — hmm, please elaborate
Copy linkTweet thisAlerts:
@felgallOct 17.2005 — Which server sidelanguage are you using to retrieve the HTML from the database?
×

Success!

Help @hedlikeahole spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...