Questions tagged [html-escape-characters]

HTML escape characters are special codes, used to display Unicode characters including those which can't be typed on a standard keyboard and those having a special meaning to HTML.

HTML escape characters are special codes, used to display Unicode characters including those which can't be typed on a standard keyboard and those having a special meaning to HTML.

To type a Unicode character, type an ampersand (&) and a hash-symbol (#) followed by the Unicode codepoint and a semi-colon (;)

For example:

& =>&

&#60; =><

&#169; =>©

&#8453; =>

&#8364; =>

378 questions
13
votes
4 answers

Print Unicode characters PHP

I have a database which stores video game names with Unicode characters but I can't figure out how to properly escape these Unicode characters when printing them to an HTML response. For instance, when I print all games with the name like…
Cameron Tinker
  • 9,634
  • 10
  • 46
  • 85
13
votes
2 answers

é HTML Entity code in title tags

I'm trying to use the HTML entity code for 'é' in the title tags of my site, and it doesn't seem to be working in any browser. If I type the French equivalent of "Party:" in the title: parté I get parté in the title…
blackbourna
  • 1,223
  • 2
  • 16
  • 29
11
votes
1 answer

Is there some way to avoid HTML escaping of text children when calling React.createElement?

Consider the following call to React.createElement: React.createElement('span', null, null, ['><',]) This will cause React to escape > and <. Is there some way to avoid this text being escaped?
aknuds1
  • 65,625
  • 67
  • 195
  • 317
9
votes
2 answers

AngularJS create html/link/anchor from text (escape/unescape html in view)

I have a controller that has an assigned value: $scope.post = 'please visit http://stackoverflow.com quickly'; I have some text in my html:

{{post}}

I would like to make a clickable link of the url (surround it with anchor tags). I tried…
Daan
  • 7,685
  • 5
  • 43
  • 52
9
votes
4 answers

Document.write(