Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Commit

Permalink
fixed html
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnetters committed Mar 27, 2017
1 parent 4071d0a commit 3eb44ea
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/KintPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ class KintPlugin extends Plugin
public function getFilters()
{
return [
new \Twig_SimpleFilter( 'd', function ($p) {return d($p);}),
new \Twig_SimpleFilter( 'ddd', function ($p) {return ddd($p);}),
new \Twig_SimpleFilter( 's', function ($p) {return s($p);}),
new \Twig_SimpleFilter( 'sd', function ($p) {return sd($p);}),
new \Twig_SimpleFilter( 'd', function ($p) {return d($p);},['is_safe' => ['html']]),
new \Twig_SimpleFilter( 'ddd', function ($p) {return ddd($p);},['is_safe' => ['html']]),
new \Twig_SimpleFilter( 's', function ($p) {return s($p);},['is_safe' => ['html']]),
new \Twig_SimpleFilter( 'sd', function ($p) {return sd($p);},['is_safe' => ['html']]),
];
}

Expand All @@ -30,10 +30,10 @@ public function getFilters()
public function getFunctions()
{
return [
new \Twig_SimpleFunction( 'd', function ($p) {return d($p);}),
new \Twig_SimpleFunction( 'ddd', function ($p) {return ddd($p);}),
new \Twig_SimpleFunction( 's', function ($p) {return s($p);}),
new \Twig_SimpleFunction( 'sd', function ($p) {return sd($p);}),
new \Twig_SimpleFunction( 'd', function ($p) {return d($p);},['is_safe' => ['html']]),
new \Twig_SimpleFunction( 'ddd', function ($p) {return ddd($p);},['is_safe' => ['html']]),
new \Twig_SimpleFunction( 's', function ($p) {return s($p);},['is_safe' => ['html']]),
new \Twig_SimpleFunction( 'sd', function ($p) {return sd($p);},['is_safe' => ['html']]),
];
}

Expand Down

0 comments on commit 3eb44ea

Please sign in to comment.