/* Convert the characters &, <, >, " (double quote), and ' (apostrophe), in a string to their corresponding HTML entities. */

function convertHTML(str) {
  // &colon;&rpar;
  return str;
}

convertHTML("Dolce & Gabbana");

@@ -45,16 +45,17 @@
  quote),
+%0A
  and ' (
@@ -155,42 +155,370 @@
 %7B%0A  
-// &colon;&rpar;%0A  return str;%0A%7D%0A%0A
+return str.split('')%0A    .map(char =%3E %7B %0A      switch(char) %7B%0A        case '&':%0A          return '&amp;';%0A        case '%3C':%0A          return '&lt;';%0A        case '%3E':%0A          return '&gt;';%0A        case '%22':%0A          return '&quot;';%0A        case %22'%22:%0A          return '&apos;';%0A        default:%0A          return char;%0A      %7D%7D)%0A    .join('');%0A%7D%0A%0Aconsole.log(
 conv
@@ -543,10 +543,11 @@
 abbana%22)
+)
 ;%0A

add convertHTML