function _twig_markup2string(&$value) { if ($value instanceof Twig_Markup) { $value = (string) $value; } }