I’m trying to include the Google Maps API script:
<script src="https://maps.googleapis.com/maps/api/js?v=3&sensor=false" type="text/javascript"></script>
The problem is that the ampersand character causes an XML parsing error. If I do this:
<script src="https://maps.googleapis.com/maps/api/js?v=3&sensor=false" type="text/javascript"></script>
it is returned verbatim.
Any idea how to get the intended script tag in the resulting page?
It shouldn’t. It’s perfectly valid. Even more, it’s required as per the HTML spec to use
&to separate multiple parameters in query strings in any HTML element’shrefandsrcattribute. Your verbatim problem is caused by something else.