PHP Classes

Source Parser: Parsing text with BBCode style tags

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 54%Total: 1,531 All time: 2,562 This week: 488Up
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: 22 packages by
Country: United States United States
Age: 44
All time rank: 61 in United States United States
Week rank: 214 Down28 in United States United States Down
Innovation award
Innovation award
Nominee: 7x

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,531
This week:0
All time:2,562
This week:488Up
 User Ratings  
 
 All time
Utility:80%StarStarStarStarStar
Consistency:70%StarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:2135