<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/bonfire-convert-html-entities" rel="nofollow">http://www.freecodecamp.com/challenges/bonfire-convert-html-entities</a> has an issue. Please describe how to reproduce it, and include links to screen shots if possible.</p>
<p dir="auto">Below is the test structure for the second code test:<br>
assert.strictEqual('&lt;&gt;', '&lt;&gt;', 'should escape characters');should escape characters: expected '&lt;&gt;' to equal '&lt;&gt;'</p>
<p dir="auto">I believe the assertion strictEqual is missing the convert function part.  I believe it should contain the following code assertion:<br>
<strong>assert.strictEqual(convert('&lt;&gt;'),</strong> '&lt;&gt;', 'should escape characters');</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9400740/8390462/6264e014-1c4b-11e5-9208-b9bc96702c92.PNG"><img src="https://cloud.githubusercontent.com/assets/9400740/8390462/6264e014-1c4b-11e5-9208-b9bc96702c92.PNG" alt="html-entities-test-code" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9400740/8390463/6883e896-1c4b-11e5-8aef-6616007fed7c.PNG"><img src="https://cloud.githubusercontent.com/assets/9400740/8390463/6883e896-1c4b-11e5-8aef-6616007fed7c.PNG" alt="html-entities-test-error" style="max-width: 100%;"></a></p>
<p dir="auto">Thank you for looking into the issue.</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/bonfire-convert-html-entities" rel="nofollow">http://www.freecodecamp.com/challenges/bonfire-convert-html-entities</a> has an issue.</p>
<p dir="auto">The following chai test does not pass for a correct conversion:<br>
<code class="notranslate">assert.strictEqual('&lt;&gt;', '&lt;&gt;', 'should escape characters');</code></p>
<p dir="auto">I think it should look like this:<br>
<code class="notranslate">assert.strictEqual(convert('&lt;&gt;'), '&lt;&gt;', 'should escape characters');</code></p>
<p dir="auto">To reproduce, press "Run code".</p>
<p dir="auto">My code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function convert(str) {
  re = new RegExp('(&amp;|&lt;|&gt;|&quot;|\')', 'g');
  str = str.replace(re, function(match) {
    switch (match) {
      case '&amp;':
        return '&amp;amp;';
      case '&lt;':
        return '&amp;lt;';
      case '&gt;':
        return '&amp;gt;';
      case '&quot;':
        return '&amp;quot;';
      case '\'':
        return '&amp;apos;';
    }
  });

  return str;
}"><pre class="notranslate"><code class="notranslate">function convert(str) {
  re = new RegExp('(&amp;|&lt;|&gt;|"|\')', 'g');
  str = str.replace(re, function(match) {
    switch (match) {
      case '&amp;':
        return '&amp;amp;';
      case '&lt;':
        return '&amp;lt;';
      case '&gt;':
        return '&amp;gt;';
      case '"':
        return '&amp;quot;';
      case '\'':
        return '&amp;apos;';
    }
  });

  return str;
}
</code></pre></div>
<p dir="auto">Really enjoying the course so far. Thank you!</p>