Search code examples
htmlspecial-characters

Why does special character create extra space when combined?


I have a line of text that contains the french word 'péférez'.

When I insert it like this...

<p>pr&eacute;f&eacute;rez</p>

I get a full line of extra space between the 'f' and second &eacute.

How is this possible? I have done everything I can to strip any extra formatting - there is none there.

What is happening here?

Screen grab

enter image description here


Solution

  • Turns out this was related to the custom font I was using. Removed it. Problem solved. Thanks for the input all!