Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 110737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:16:27+00:00 2026-05-11T02:16:27+00:00

.Net’s Server.HTMLEncode() is the very helpful function that takes an HTML string and replaces

  • 0

.Net’s Server.HTMLEncode() is the very helpful function that takes an HTML string and replaces special characters with their entity equivalents – ‘<‘ becomes &lt ; and so forth.

Is there a (built-in) function that does the reverse? There doesn’t seem to be, and I am incredulous. While I could certainly write my own (and have in the past) Server.HTMLEncode has all kinds of cool handling for different string encodings and high-level unicode characters that I would really not have crash my hand-rolled decoder in a year’s time.

What do other people do when they need the plain HTML back?

Update: To answer the first batch of questions, I present the MSDN article on the Server object, which has Encode but no Decode… I’m as amazed as anyone.

Update2: as several alert readers have pointed out, the docs I was looking at were for classic ASP, not ASP.Net. Thanks guys, that’s an important MSDN safety tip.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:16:27+00:00Added an answer on May 11, 2026 at 2:16 am

    You’re looking at the wrong docs. Check this out:

    http://msdn.microsoft.com/en-us/library/system.web.httpserverutility_methods.aspx http://msdn.microsoft.com/en-us/library/system.web.httpserverutility.htmlencode.aspx http://msdn.microsoft.com/en-us/library/system.web.httpserverutility.htmldecode.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

.NET framework 3.5 introduces Action and Func<> predefined delegate types that are very handy.
.NET provides EventLog class that be able to write application event information to a
.Net framework contains a great class named Convert that allows conversion between simple types,
net ajax app. I have one modelpopup that shows a IFrame and inside Iframe
.NET 3.5 was different and co-existed along with .NET 2.0. Is that still the
.NET Programming guidelines state that we should not catch general exceptions. I assume the
net with vb and sql server 2005. i have DataSet with 3 tables in
.NET's Ajax helper has the LoadingElementId: String property, gets and sets the ID of
net c#. I have a page A with this code //ON PAGE A: string
.NET allows to extend XSLT by using the so called extension object. Very handy

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.