cancel
Showing results for 
Search instead for 
Did you mean: 

XML and ampersand in links - not parsing

XML and ampersand in links - not parsing

For example:

 

<link href='https://fonts.googleapis.com/css?family=Oswald&subset=latin,latin-ext' rel='stylesheet' type='text/css'>

After 'oswald' is &, and magento is not compailing it. Is there a way to make it right?

I was adding it here:

 

app\design\frontend\vendor\theme\Magento_Theme\layout\default_head_blocks.xml

 

like that:

 

<css src="https://fonts.googleapis.com/css?family=Oswald&subset=latin,latin-ext src_type="url"/>

 

1 REPLY 1

Re: XML and ampersand in links - not parsing

You shoud escape & with &amp; in an XML or HTML document.