title: Why does "http://function URL() {[native code]}" get injected via $(selector).html()?
body: <p>I have a basic GET call to my backend via jQuery, like so: <code>$.get("http://whatever.herokuapp.com/products", function(html) {}</code>, which gets handled in a <code>Node.js</code> route handler by calling code that fetches a product record from a <code>MongoDB</code> database. This product data is then built up with some HTML, and is sent back as an HTML string, whereupon it is injected into the page via a <code>$("#products").html(html)</code> call.</p>
  
  <p>This HTML string has a URL in it (a link to the product on some eCommerce site). But, instead of the URL being rendered as the usual <code>http://www.somemerchant.com/productid=12345&amp;whatever=2</code>, it gets mangled into <code>http://function URL() {[native code]}</code>.</p>
  
  <p>Anyone have any idea what would cause this to happen? I have checked the return every step of the way - from the raw data extracted from <code>MongoDB</code>, to the HTML string created and sent back to <code>Node.js</code> handler, to what's returned by <code>Node.js</code> via <code>response.send()</code>, to what results from the <code>$.get()</code> call, and everything is fine - the URL is as it should be. If i change the <code>$("#products").html(html)</code> call to <code>$("#products").text(html)</code>, again, everything is fine - the HTML is rendered as text, but the URL is intact. It's at this point - <code>$("#products").html(html)</code> - that the URL gets mangled. And i have no idea why.</p>
  
  <p>Thanks for any insights.</p>