title: six.u() un-escaping HTML string
body: <p>Using Python 2.7. As part of a JSON response, an API returns the string:</p>
  
  <pre><code>&lt;a href="https://about.twitter.com/products/tweetdeck" rel="nofollow"&gt;TweetDeck&lt;/a&gt;
  </code></pre>
  
  <p>I'm using a library that internally does:</p>
  
  <pre><code>six.u(json.dumps(s))
  </code></pre>
  
  <p><code>json.dumps()</code> output is:</p>
  
  <pre><code>'"&lt;a href=\\"https://about.twitter.com/products/tweetdeck\\" rel=\\"nofollow\\"&gt;TweetDeck&lt;/a&gt;"'
  </code></pre>
  
  <p>This output can be decoded correctly with <code>json.loads</code></p>
  
  <p>But the call to <code>six.u</code> gives:</p>
  
  <pre><code>u'"&lt;a href="https://about.twitter.com/products/tweetdeck" rel="nofollow"&gt;TweetDeck&lt;/a&gt;"'
  </code></pre>
  
  <p>And attempting to decode this string with <code>json.loads</code> throws an error.</p>
  
  <pre><code>ValueError: Extra data: line 1 column 11 - line 1 column 86 (char 10 - 85)
  </code></pre>
  
  <p>Looks like the call to <code>six.u</code> un-escaped the <code>href</code> value, but i'm not entirely sure how to fix this.</p>