Skip to content

Commit

Permalink
fix_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatthes committed May 11, 2023
1 parent 6327ee7 commit df26886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/buildInFilters.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

namespace Leuffen\TextTemplate;

TextTemplate::$__DEFAULT_FILTER["_DEFAULT_"] = function ($input) { return
TextTemplate::$__DEFAULT_FILTER["_DEFAULT_"] = function ($input) {
if ($input === null)
return "null";
htmlspecialchars($input);
return htmlspecialchars($input);
};

// Raw is only a pseudo-filter. If it is not in the chain of filters, __DEFAULT__ will be appended to the filter
Expand Down

0 comments on commit df26886

Please sign in to comment.