- PHP to convert all characters in a string to their HTML entities
Convert any string into its HTML-encoded equivalent effortlessly with our PHP tool Transform characters into their corresponding HTML entities, ensuring compatibility across browsers and web applications
- PHP: html_entity_decode - Manual
html_entity_decode () is the opposite of htmlentities () in that it converts HTML entities in the string to their corresponding characters
- character - php string convert to html - Stack Overflow
You are using it like this: $string = htmlspecialchars_decode($string);, right? yes , and $str = htmlspecialchars_decode($str,ENT_NOQUOTES); still doesn't work I save it into a file using fwrite, wen i try to output it to html it comes up as plain text not html element, if that helps @Val your problem is most likely elsewhere
|