💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
# `filter` Filter sections allow you to apply regular Twig filters on a block of templatedata. Just wrap the code in the special `filter` section: <table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1 2 3</pre></div></td><td class="code"><div class="highlight"><pre>{% filter upper %} This text becomes uppercase {% endfilter %} </pre></div></td></tr></table> You can also chain filters: <table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1 2 3 4 5</pre></div></td><td class="code"><div class="highlight"><pre>{% filter lower|escape %} &lt;strong&gt;SOME TEXT&lt;/strong&gt; {% endfilter %} {# outputs "&amp;lt;strong&amp;gt;some text&amp;lt;/strong&amp;gt;" #} </pre></div></td></tr></table>