Login   Register  
PHP Classes
elePHPant
Icontem

UBBCode: Replaces the ubb tags with HTML, and vice versa

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 (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-03-24 (11 years ago) RSS 2.0 feedStarStarStarStar 72%Total: 2,552 All time: 1,394 This week: 2,398Down
Version License Categories  
ubb 1.0GNU Lesser General Publ...HTML, Text processing
Description Author  

Replaces the UBB tags listed below with HTML tags, and vice versa.
Also keeps the line feeds in the text and removes all HTML tags.

UBB Tags:
[b]...[/b] bold
[i]...[/i] italic
[code]...[/code] source code
[img], [/img] images
[quote]...[/quote] blockquote
[url]http//www.link[/url] links
[url=http//www.link]name[/url] links
[email]me@home.de[/email] email link
[email=me@home.de]name[/email] email link

Additional Tags:
[u]...[/u] underline
[center]..[/center] center
[color=name]...[/color] colors

For a description of ubbcodes see: http://community.infopop.net/infopop/ubbcode.html

FUNCTIONS:
function encode($str)
function decode($str)
function strip($str)
function listCodes()

Picture of L
Name: L <contact>
Classes: 13 packages by
Country: Germany Germany
Age: 40
All time rank: 486 in Germany Germany
Week rank: 515 Down19 in Germany Germany Down

  Files folder image Files  
File Role Description
Accessible without login HTML file testUBBCode.html Output example output
Accessible without login Plain text file testUBBCode.php Example example
Accessible without login HTML file UBBCode.html Doc. phpdoc
Plain text file UBBCode.php Class main class

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,552All time:1,394
 This week:0This week:2,398Down
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:70%StarStarStarStar
Documentation:70%StarStarStarStar
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:72%StarStarStarStar
Rank:128