Answers for "html_entity_decode javascript"

1

html_entity_decode

html_entity_decode

$temp = "<font class='red font-price'> 30 </font>";
echo html_entity_decode($temp);
Posted by: Guest on November-09-2020
0

Javascript convert html entity to string

const htmlEntities = {
    "&": "&amp;",
    "<": "&lt;",
    ">": "&gt;",
    '"': "&quot;",
    "'": "&apos;"
  };
return str.replace(/([&<>\"'])/g, match => htmlEntities[match]);
}
Posted by: Guest on August-18-2020

Code answers related to "html_entity_decode javascript"

Browse Popular Code Answers by Language