/    Sign up×
Community /Pin to ProfileBookmark

Rendering HTML inside a textarea

I want to have a textarea that renders HTML. I have seen editors that do this (Tiny MCE, etc) but they are very complex. I dont want the user to have the power to edit the content themselves but just want to render the HTML inside a uneditable textarea. Is there a simple way to do this?

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@CrazyMerlinJan 19.2006 — try wrapping it all in <pre></pre> tags
Copy linkTweet thisAlerts:
@adamthenewbieauthorJan 19.2006 — Thanks for the reply but that would just show

[CODE]<pre>testing</pre>[/CODE] inside the textarea.
Copy linkTweet thisAlerts:
@CrazyMerlinJan 19.2006 — in that case, you need to escape all the characters
Copy linkTweet thisAlerts:
@adamthenewbieauthorJan 19.2006 — Not sure What you mean by escape the characters?
Copy linkTweet thisAlerts:
@adamthenewbieauthorJan 20.2006 — Anyone know an easy solution to do this?
Copy linkTweet thisAlerts:
@kinkJan 22.2006 — maybe tryy using a background image
×

Success!

Help @adamthenewbie 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 5.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...