Convert the characters <code>&</code>, <code><</code>, <code>></code>, <code>"</code> (double quote), and <code>'</code> (apostrophe), in a string to their corresponding HTML entities.
Remember to use <ahref='http://forum.freecodecamp.org/t/how-to-get-help-when-you-are-stuck/19514'target='_blank'>Read-Search-Ask</a> if you get stuck. Try to pair program. Write your own code.
- text: <code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce & Gabbana</code>.
testString: assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, '<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce & Gabbana</code>.');
- text: <code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in "quotation marks"</code>.
testString: assert.match(convertHTML('Stuff in "quotation marks"'), /Stuff in "quotation marks"/, '<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in "quotation marks"</code>.');
- text: <code>convertHTML("Schindler's List")</code> should return <code>Schindler's List</code>.