Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

é 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:

<title>part&eacute;</title> 

I get part&eacute; in the title bar across all browsers when it renders. When I use the 'é' character, it actually works. Does anyone know what is up with this?

like image 542
blackbourna Avatar asked Jun 14 '12 16:06

blackbourna


1 Answers

Entity references work fine (at least as fine as characters entered directly) in title elements. The problem is most probably caused by something that looks like an entity reference to an author when he looks at his files—the data that browsers get does not include it. Some software is used to generate the HTML document from some file that contains &eacute; but the software does not simply pass it forward but e.g. converts & to &amp;.

This can be checked using View Source in a browser.

like image 137
Jukka K. Korpela Avatar answered Oct 17 '22 01:10

Jukka K. Korpela