shinate / gulp-version-number

Add version number to js/css/image in HTML
MIT License
24 stars 19 forks source link

The ampersand must be written as the HTML entity in HTML #15

Open figure002 opened 2 years ago

figure002 commented 2 years ago

The ampersand ("&") has a special meaning in HTML, and when it's used in an URL query string, they must be written as &. For example, this is the correct format:

<link rel="stylesheet" href="main.css?foo=bar&amp;baz=buz">

This is invalid:

<link rel="stylesheet" href="main.css?foo=bar&baz=buz">

This updates the library to correctly use the HTML entity in URLs.