Convert HTML Entities new

Hi!
I ask for help
Why not pass the tests?


function convertHTML(str) {
  // :)

   str = str.replace(/&/g, "&")
            .replace(/</g, "&lt;")
            .replace(/>/g, "&​gt;")
            .replace(/"/g, "&​quot;")
            .replace(/'/g, "&​apos;");

  console.log(str);

  return str;
}

convertHTML("Dolce & Gabbana");
convertHTML("Hamburgers < Pizza < Tacos");
convertHTML("Sixty > twelve");
convertHTML('Stuff in "quotation marks"');
convertHTML("Schindler's List");
convertHTML("<>");

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities

Have you copied the html entities? If it is so you may have copied also invisible characters. Try deleting and typing them and see if it helps

Thank you so much! Your advice helped me ))