3 // @role Text formatting
4 // @author Matt Todd <matt@matttoddphoto.com>
6 // @desc Handles formatting (based on Textile)
7 // @refer_to "RedHanded":http://redhanded.hobix.com/
8 // @requires stdexception.php (ExtException class)
10 include_once('extexception.php');
14 // create HTML from RedCloth formatting
15 public static function to_html($input) {
16 $input = addslashes($input);
17 $output = `
./extensions
/RedCloth
/redcloth
"{$input}"`
;
18 return stripslashes($output);
22 class RedClothException
extends ExtException
{