Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.
phpentities
Basicly this convert all applicable characters to HTML entities

phpentities

Quote

phpentities ( string $text )


Parameters
text
The input string.

Return Values
Returns the encoded string.

Example
Code
<?php
$text = "A 'quote' is <b>bold</b>";
 
<?php
$text = "A 'quote' is <b>bold</b>";
 echo phpentities($text);
?>

Outputs

Quote

A &#039;quote&#039; is &lt;b&gt;bold&lt;/b&gt;


See also …


References