PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  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 (13 years ago) RSS 2.0 feedStarStarStarStar 72%Total: 2,560 All time: 1,451 This week: 860Up
Version License Categories
ubb 1.0GNU Lesser Genera...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

  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,560
This week:0
All time:1,451
This week:860Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:70%StarStarStarStar
Documentation:70%StarStarStarStar
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:72%StarStarStarStar
Rank:200