Intermediate Algorithm Scripting: Convert HTML Entities_Help Requested

Hello. The code editor is rejecting my code; however, I feel it should pass all the tests. Could someone help me pinpoint what’s wrong? Thanks!

function convertHTML(str) {
  // :)
  let html = [['&', '&​amp;'], ['<', '&​lt;'], ['>', '&​gt;'], ['"', '&​quot;'], ["'", '&​apos;']];
  for (let i = 0; i < html.length; i++) {
    for (let j = 0; j < str.length; j++) {
      if (str[j].includes(html[i][0])) {
      str = str.replace(html[i][0], html[i][1]);
  return str;

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


Sixty &​gt; twelve
Dolce &​amp; Gabbana
Hamburgers &​lt; Pizza &​lt; Tacos
Stuff in &​quot;quotation marks&​quot;
Schindler&​apos;s List

please add link to challenge when you ask for help, or better use the “Ask for Help” button in the challenge

you have the same issue as this other user: Convert HTML Entities wont work despite of "working"

there are invisible characters in the strings you are replacing with, try deleting the strings and replacing them typing and not pasting

That worked! Thanks so much.