Error in line2 and line6

**Tell us what’s happening:**Error in line2 and line6

Your code so far

function convertHTML(str) {
// :)
str = str.replace(/&/g, "&");
str = str.replace(/</g, "&It;");
str = str.replace(/>/g, "&gt;");
str = str.replace(/"/g, "&quot;");
str = str.replace(/'/g, "&apos;");
str = str.replace(/<>/g, "&It;&gt;");
return str;

console.log(convertHTML("Dolce & Gabbana"));
console.log(convertHTML("Hamburgers < Pizza < Tacos"));
console.log(convertHTML("Sixty > twelve"));
console.log(convertHTML('Stuff in "quotation marks"'));

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.100 Safari/537.36.

Challenge: Convert HTML Entities

Link to the challenge:

are you sure this is what you should write there?

In addition to what @ilenia stated above, do you even need the line above?

Yes, I’m sure…

are you really sure? because that’s an uppercase i, which is totally not that simble html code, also because those are all lowercase

Yes, I’m sure. You can see it in and in

yes, &lt;, lower case L, lower case T
you wrote &It; uppercase i, lower case T

my problem is solved


thank you, my problem is solved