function convertHTML(str) {
var obj={
'&':'&',
'<':'<',
'>':'>',
'"':'"',
'\'':"'"
};
return str.split('').map((item) => obj[item] || item).join('');
}
console.log(convertHTML('Stuff in "quotation marks"'));
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.125 Amigo/61.0.3163.125 MRCHROME SOC Safari/537.36.
issues you can have is that you copied and pasted the html elements, there are hidden characters in there that if present don’t let you pass
can’t debug right now, but try to type the html elements