Use JavaScript to display HTML as text

I found a need to display HTML as text. The recommended way to do this is to escape the HTML markup so browsers will correctly display the code as text. I found a sample code here.

Advertisements

One thought on “Use JavaScript to display HTML as text

  1. I absolutely love your blog and find most of your post’s to be precisely what I’m looking for.
    Does one offer guest writers to write content for you personally?
    I wouldn’t mind composing a post or elaborating on many of the subjects you write concerning here. Again, awesome site!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s