Added Canvas 1.1.0, originally not under SCM so no historical development records...
[canvas.git] / extensions / RedCloth.php
blobf644c058a4184e550dff8907c9668be50d28687f
1 <?php
2 // @title RedCloth
3 // @role Text formatting
4 // @author Matt Todd <matt@matttoddphoto.com>
5 // @created 2006-01-08
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');
12 // classes
13 class RedCloth {
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 {