Skip to content
Browse files

Working on issue #61.

  • Loading branch information...
1 parent 2c93996 commit 0b487360d12a57f591d7c84b4823e2462cc72185 @bobdenotter committed Jan 5, 2013
View
4 app/extensions/GoogleAnalytics/extension.php
@@ -66,7 +66,7 @@ function insertAnalytics() {
$html = str_replace("%domainname%", $_SERVER['HTTP_HOST'], $html);
- return $html;
+ return new \Twig_Markup($html, 'UTF-8');
}
@@ -216,7 +216,7 @@ function insertWidget()
'pages' => $pages
));
- return $html;
+ return new \Twig_Markup($html, 'UTF-8');
}
View
4 app/extensions/HelloWorld/extension.php
@@ -45,8 +45,10 @@ function twigHelloworld($name="") {
}
}
- return "Hello, ". $name ."!";
+ $html = "Hello, ". $name ."!";
+ return new \Twig_Markup($html, 'UTF-8');
+
}
View
2 app/extensions/SimpleForms/extension.php
@@ -169,7 +169,7 @@ function simpleform($name="")
"button_text" => $button_text
));
- return $formhtml;
+ return new \Twig_Markup($formhtml, 'UTF-8');
}
View
4 app/extensions/TestSnippets/extension.php
@@ -54,7 +54,9 @@ function init($app) {
function callback(\Silex\Application $app, $var) {
- return "<!-- snippet inserted via callback with parameter '$var'.. -->";
+ $html = "<!-- snippet inserted via callback with parameter '$var'.. -->";
+
+ return new \Twig_Markup($html, 'UTF-8');
}

0 comments on commit 0b48736

Please sign in to comment.
Something went wrong with that request. Please try again.