Login   Register  
PHP Classes
elePHPant
Icontem

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jonathan Discipulo  >  Entitize Class  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: Usage
Class: Entitize Class
Convert text into HTML entities
Author: By
Last change:
Date: 7 years ago
Size: 406 bytes
 

Contents

Class file image Download
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!