Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • If you need this, there is a certain probability that you're approching the problem the wrong way. Commented Dec 2, 2010 at 19:32
  • 2
    What is the reasoning behind not doing this? Commented Dec 2, 2010 at 19:47
  • This is needed in one case where you have data that needs to be HTML friendly for display but can be saved to a text file and downloaded by a user. In that case, it is really necessary because users typically won't even know that it is a character entity, never mind which one it is. Commented Mar 4, 2016 at 14:43
  • 4
    Googlers: Skip all of these answers. The best solution: stackoverflow.com/a/7394787/114558 Commented Oct 5, 2016 at 21:33