Convert HTML Entities - JavaScript Solution & Walkthrough
11/21 Convert HTML Entities
Convert the characters &, <, >, " (double quote), and ' (apostrophe), in a string to their corresponding HTML entities.
function convertHTML(str) {
return str;
}
convertHTML("Dolce & Gabbana");
Credit: FreeCodeCamp...
benjaminsemah.hashnode.dev4 min read