Login   Register  
PHP Classes
elePHPant
Icontem

Class: Source Parser

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Vagharshak Tozalakyan  >  Source Parser  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Source Parser
Base name: source_parser
Description: Parsing text with BBCode style tags
Related classes: , , , , , , ,
Version: -
PHP version: 3
License: GNU General Public License (GPL)
All time users: 1370 users
All time rank: 2355
Week users: 1 user
Week rank: 2503
Picture of Vagharshak Tozalakyan
Author: Vagharshak Tozalakyan <e-mail contact>
Packages: 27 Browse this author's classes Browse this author's classes
Country: Armenia Armenia - PHP jobs in Armenia
Age: 32
All time rank: 61 in Armenia Armenia
Week rank: 18 Down1 in Armenia Armenia
Innovation award
Innovation award
Nominee: 7x


  Detailed description  
This class can be used to parse text BBCode style tags like [PIC="logo.gif"], [IMG PIC="photo.jpg" BORDER=0], [B]text[/B] etc.

It invokes given calllback functions when open and close tags are found passing the attributes of the tags. The callback functions can return text that is used to replace the tags that are found.

Optionally, the class can turn URLs and e-mail addresses into HTML links. The e-mail addresses can be encoded using Javascript to prevent harvesting by robots.

 

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes
Group folder image Parsers Programming language interpreters and format parsers View top rated classes

  Rate classes User ratings   Applications   Files Files  

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (87.5%)
Sufficient (75.0%)
-
Sufficient (75.0%)
-
-
Not sure (58.8%)
902
Month:
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 source_parser.class.php Class Class source
Plain text file test.php Example Sample

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