diff options
Diffstat (limited to 'inc/contrib/Twig/Markup.php')
| -rw-r--r-- | inc/contrib/Twig/Markup.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/inc/contrib/Twig/Markup.php b/inc/contrib/Twig/Markup.php new file mode 100644 index 00000000..c1a1469c --- /dev/null +++ b/inc/contrib/Twig/Markup.php @@ -0,0 +1,31 @@ +<?php + +/* + * This file is part of Twig. + * + * (c) 2010 Fabien Potencier + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Marks a content as safe. + * + * @package twig + * @author Fabien Potencier <fabien@symfony.com> + */ +class Twig_Markup +{ + protected $content; + + public function __construct($content) + { + $this->content = (string) $content; + } + + public function __toString() + { + return $this->content; + } +} |
