Unit test for #149.
[akelos.git] / lib / AkConverters / AkHtmlToSmartypants.php
blob540a3d2fae456dac3a8746f47159b535dcccc759
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4 // +----------------------------------------------------------------------+
5 // | Akelos Framework - http://www.akelos.org |
6 // +----------------------------------------------------------------------+
7 // | Copyright (c) 2002-2006, Akelos Media, S.L. & Bermi Ferrer Martinez |
8 // | Released under the GNU Lesser General Public License, see LICENSE.txt|
9 // +----------------------------------------------------------------------+
11 /**
12 * @package ActiveSupport
13 * @subpackage Converters
14 * @author Bermi Ferrer <bermi a.t akelos c.om>
15 * @copyright Copyright (c) 2002-2006, Akelos Media, S.L. http://www.akelos.org
16 * @license GNU Lesser General Public License <http://www.gnu.org/copyleft/lesser.html>
19 class AkHtmlToSmartypants
21 function convert()
23 require_once(AK_VENDOR_DIR.DS.'TextParsers'.DS.'smartypants.php');
24 $Smartypants = new SmartyPantsTypographer_Parser();
25 return $Smartypants->transform($this->source);