To use the class, simply include it on your PHP file:
include('class.entitize.php');
Then, instantiate the class:
$entitize = new Entitize();
Now, you can convert any string into HTML entities by doing so:
$email = $entitize->convert('jonathan@exploitedweb.com');
$text = 'This text is not readable when viewed in source code';
$text = $entitize->convert($text);
Have fun!
|