Skip to content
umefarooq edited this page Jan 14, 2011 · 3 revisions

Welcome to the codeigniter-decoda wiki! this class converted to codeigniter all credit goes to milesj class you can find here https://github.com/milesj/php-decoda

To use this library with codeigniter

$this->library->load("decoda");

$string = '[b]Bold[/b] [i]Italics[/i] [u]Underline[/u] [s]Strike through[/s] [color=#f00]Red Text (Hex code)[/color] [color=purple]Purple Text (Name)[/color] [h3]Header 3[/h3] [h6]Header 6[/h6] [size=12]Font size 12[/size] [size=24]Font size 24[/size] Sub[sub]Script[/sub] Super[sup]Script[/sup]';

$this->decoda->parse($string);

if you want to return back

$this->decoda->parse($string,TRUE);

Clone this wiki locally