Category | String Functions - 21. htmlentities Convert all applicable characters to HTML entities |
Code Examples | bold"; // Outputs: A 'quote' is <b>bold</b> echo htmlentities($str); // Outputs: A 'quote' is <b>bold</b> echo htmlentities($str, ENT_QUOTES); // this does not really work -- jli |
Test Code | |
Web Link | http://www.php.net/manual/en/function.htmlentities.php |
Remarks | |
Cancel |