Adding external link in custom theme in any xml e.g: contact_index_index.xml doe not parse properly if it has & or &
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" src_type="url" />
Notice the &
gives:
{"0":"Warning: simplexml_load_string(): Entity: line 6371: parser error : EntityRef: expecting ';' in \/var\/www\/vhosts\/magento2 \/htdocs\/vendor\/magento\/framework\/View\/Model\/Layout\/Merge.php
Does anyone experiencing this too and how to fix it?
Thanks.