Login   Register  
PHP Classes
elePHPant
Icontem

Regulate XHTML Text

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Joseph
Name: Joseph <e-mail contact>
Packages: 2 Browse all classes by Joseph Browse all classes by
Country: United States United States - PHP jobs in United States
Age: ???
All time rank: 2561323 in United States United States
Week rank: 2112 Up255 in United States United States Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
This class can encode characters in text in HTML tags.

It can take a text string eventual formatted with HTML tags and encodes all characters as HTML entities, preserving the original HTML markup.

The class can also replace line break characters by line break HTML tags if the line break is within an HTML tag.

It can also remove any JavaScript it finds to prevent cross-site scripting attacks.

  Classes of Joseph  >  Regulate XHTML Text  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Regulate XHTML Text
Base name: xhtmlencode
Description: Encode characters in text in HTML tags
Version: 1.0
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 406 users
All time rank: 5449
Week users: 0 users
Week rank: 2045 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes
Group folder image Security Security protection and attack detection View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
July 2011
Number 6
Cleaning up and encoding text to show it in HTML pages is easy. However, if you need to properly encode text that is already within HTML tags, it is not so easy.

This class provides a solution that parses the HTML and rewrite the tags and data to properly encode all the text it contains.

Manuel Lemos

  User ratings  
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file PHP_functions.php Class Source code for XHTML encode
Accessible without login HTML file PHP_functions-php_sourcecode.htm Data Source Code (highlighted) for XHTMLencode (and more)
Accessible without login Plain text file test_XHTMLencode.php Example Demo of Regulate Text Class (XHTMLencode)
Accessible without login HTML file test_XHTMLencode-php_sourcecode.htm Data Sourcecode of Demo for Regulate Text Class (XHTMLencode)
Accessible without login Plain text file PHP_functions-instructions.php Aux. How to use the RegulateText Class (XHTMLencode) and others
Accessible without login HTML file test_array_subkey-php_sourcecode.htm Data Sourcecode of Bonus Demo: array_subkey for PHP 5.3
Accessible without login HTML file test_array_subkey.php Example Demo of bonus: array_subkey for PHP 5.3
Accessible without login Image file SoftMoon.gif Icon foreground image
Accessible without login Image file SoftMoon.repeat-x.png Icon backgrournd image
Accessible without login Image file SoftMoon.repeat-y.png Icon background image
Accessible without login Image file SoftMoon.footer.back.png Icon background image

Download all files: xhtmlencode.tar.gz xhtmlencode.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.