PHP Classes
elePHPant
Icontem

Source Parser: Parsing text with BBCode style tags

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-09-18 (9 years ago) RSS 2.0 feedStarStarStar 58%Total: 1,504 This week: 1All time: 2,453 This week: 1,242Up
Version License PHP version Categories  
source_parser 1.0GNU General Publi...3HTML, Text processing, Parsers
Description Author  

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.

Picture of Vagharshak Tozalakyan
Name: Vagharshak Tozalakyan <contact>
Classes: 28 packages by
Country: Armenia Armenia
Age: 35
All time rank: 61 in Armenia Armenia
Week rank: 34 Down1 in Armenia Armenia Equal
Innovation award
Innovation award
Nominee: 7x

  Files folder image Files  
File Role Description
Plain text file source_parser.class.php Class Class source
Accessible without login Plain text file test.php Example Sample

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,504All time:2,453
 This week:1This week:1,242Up
 User Ratings  
 
 All time
Utility:87%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1027