View source for Template Filters

{{toc numerate=1}}

===Pull===
pull methods
%%[ ' pull: value ' ] %% 

====csrf====
##""[ ' csrf: login ' ]""##

====db====
##""[ ' db: pwd_min_chars ' ]""##

====format_t====
##""[ ' format_t: ForgotLink ' ]""##

====href====
##""[ ' href: properties ' ]""##

====_t====
##""[ ' _t: RealName ' ]""##

===Escaper===
((source:master/src/class/templatestescaper.php templatestescaper.php))

provides five methods for escaping output. Which method to use depends on the context in which the output is used.

====e====
escape a string for an **HTML body** context
##""[ ' note | e ' ]""##

====attr====
escape a string for an **HTML attribute** context
##""[ ' username | e attr ' ]""##

====css====
escape a string for a CSS context
##""[ ' style | e css ' ]""##

====js====
escape a string for a Javascript context
##""[ ' javascritp | e js ' ]""##

====url ====
escape a string for a URI or URI parameter context
##""[ ' url | e url ' ]""##


===Filter===
((source:master/src/class/templatestfilters.php templatestfilters.php))

push methods
%% [ ' variable | filter1 | filter2 | ... ' ] %%

====check====
##""[ ' comments | check 2 ' ]""##

====checkbox====
##[ ' minor | checkbox ' ]##

====date====

====dbg====

====default====
##""[ ' delim | default '<br><br>' ' ]""##

====enclose====
##""[ ' count | enclose " (" ")" ' ]""##

====e====
see Escaper

====format====

====hide_page====
##[ ' href | hide_page ' ]##

====index====

====join====

====json_decode====

====json_encode====

====list====
##[ ' watched | list WatchText UnwatchText | _t ' ]##

====lower====
This filter converts any input to lowercase.

====nl2br====
##""[ ' preview | nl2br ' ]""##

====number====
##""[ ' page.hits | number 0 , . ' ]""##

====pre====
##[ ' data | pre ' ]##

====regex====
##[ ' search | regex /^[^?]*\?page=([^&]+).*?$/ '<input type="hidden" name="page" value="\1">' 1 1 ' ]##

====replace====
##""[ ' a | replace desc uarr asc darr ' ]""##

====select====
##[ ' listcount | select 10 ' ]##

====sp2nbsp====

====spaceless====

====split====

====stringify====

====striptags====
This filter can strip XML and HTML tags from given content.

====_t====

====time_formatted====
##[ ' page.created | time_formatted ' ]##

====trim====
This filter modifies a given string such that certain characters are removed from the beginning and end.
##[ ' t TabTitle | trim ' ]##

====truncate====
##[ ' timezone | truncate 50 ' ]##

====upper====
This filter converts any input to UPPERCASE.

====url_encode====

====void====
##""['' commit | void  // alternation hack '']""##