Please help me solve the error displayed in the image below.
It says:
Error parsing XML, line 5, column 71: The reference to entity "display" must end with the ';' delimiter
<strike>
<head>
<link href=";display=swap" rel="stylesheet"/>
</strike>
Please help me solve the error displayed in the image below.
It says:
Error parsing XML, line 5, column 71: The reference to entity "display" must end with the ';' delimiter
<strike>
<head>
<link href="https://fonts.googleapis./css?family=Roboto&display=swap" rel="stylesheet"/>
</strike>
Share
Improve this question
edited Dec 17, 2019 at 6:32
Pingolin
3,4177 gold badges27 silver badges43 bronze badges
asked Dec 17, 2019 at 6:14
user12550010user12550010
3 Answers
Reset to default 9You need to escape the ampersand &
to &
in XML code.
<link href="https://fonts.googleapis./css?family=Roboto&display=swap" rel="stylesheet"/>
just change &
with &
The problem will be solved
The html code will be like this:
<link href="https://fonts.googleapis./css?family=Roboto&display=swap" rel="stylesheet"/>
For your kind attention, you can avoid display=swap. And I'll remend this one:
<link as='style' href='https://fonts.googleapis./css?family=Roboto' media='all' onload='this.onload=null;this.rel='stylesheet'' rel='preload'/>