PHP Classes

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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: 8 years ago
Size: 406 bytes


Class file image Download
To use the class, simply include it on your PHP file:


Then, instantiate the class:

  $entitize = new Entitize();

Now, you can convert any string into HTML entities by doing so:

  $email = $entitize->convert('');

  $text = 'This text is not readable when viewed in source code';
  $text = $entitize->convert($text);

Have fun!