title: Referencing local images in KML results in inconsistent behavior
body: <p>My goal is to create a KML that contains links to photos with GPS information on a set of network drives. Generate the file with Python and create the paths using <code>pathlib.Path(...).as_uri()</code>.</p>
  
  <p>For example, this would be created:</p>
  
  <pre><code>    &lt;Placemark&gt;
        &lt;name&gt;IMG_0089&lt;/name&gt;
        &lt;description&gt;
          &lt;![CDATA[
          &lt;img src="file:////share/folder%201/folder2/IMG_0089.JPG" width="600"/&gt; 
          ]]&gt;
        &lt;/description&gt;
        &lt;styleUrl&gt;#simpleBalloon&lt;/styleUrl&gt;
        &lt;Point&gt;
          &lt;coordinates&gt;-122.5,37.2&lt;/coordinates&gt;
        &lt;/Point&gt;
      &lt;/Placemark&gt;
  </code></pre>
  
  <p>I have a couple questions:</p>
  
  <p>First, the URI provided by <code>pathlib</code> starts with <code>file://</code>, however it seems that Google Earth wants the path to start with <code>file:////</code>. Chrome will open <code>file://</code> just fine. </p>
  
  <p>Second, not all of the images are displayed by Google Earth. I can take the path in the KML and open it in Chrome (or Windows Explorer) and the image is displayed. What is most confusing is that it only happens on some images. The paths are being quoted by <code>Jinja2</code> when the KML is created.</p>
  
  <p>Based on this <a href="https://stackoverflow.com/a/16880375/562934">comment</a>, it appears this this might be related to how some characters should be escaped. At least some of the problematic paths have apostrophes in them.</p>