Encode & as & inside HTML-attributes

See http://stackoverflow.com/a/3705601 for an explanation.
This commit is contained in:
spinF 2017-01-17 14:43:11 +01:00
parent 0843f3acf4
commit 4939822bb4
No known key found for this signature in database
GPG Key ID: 3CE5D2B0502C0CF9

View File

@ -14,7 +14,7 @@
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.30.0/mapbox-gl.css' rel='stylesheet' /> <link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.30.0/mapbox-gl.css' rel='stylesheet' />
</head> </head>
<body> <body>
<iframe id="github-button" src="https://ghbtns.com/github-btn.html?user=lukasmartinelli&repo=osm-liberty&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe> <iframe id="github-button" src="https://ghbtns.com/github-btn.html?user=lukasmartinelli&amp;repo=osm-liberty&amp;type=star&amp;count=true&amp;size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
<div id='map'></div> <div id='map'></div>
<script> <script>
var map = new mapboxgl.Map({ var map = new mapboxgl.Map({