didierfranc / gatsby-plugin-google-fonts

Bring Google Fonts to Gatsby https://www.gatsbyjs.org/
MIT License
88 stars 18 forks source link

Pipe character breaks w3c validation #22

Open mikepspc opened 2 years ago

mikepspc commented 2 years ago

w3c validator complains about the pipe character, which is plugin sends unescaped.

**Error: Bad value https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700|Rubik:300,400,600,700&display=swap for attribute href on element link: Illegal character in query: | is not allowed.

From line 6, column 155271; to line 6, column 155408

9d550bf"/><link**

Some suggestions to fix here:

https://stackoverflow.com/questions/22466913/google-fonts-url-break-html5-validation-on-w3-org