<p>I'm trying to get the contents of a XML document element, but the element has a colon in it's name.</p>

<p>This line works for every element but the ones with a colon in the name:</p>

<pre><code>$(this).find("geo:lat").text();
</code></pre>

<p>I assume that the colon needs escaping. How do I fix this?</p>

Use a backslash, which itself should be escaped so JavaScript doesn't eat it:
```
```
$(this).find("geo\\:lat").text();
```
```