# Filters Filters are used to format the rendered contents. Example: === "Template" ``` rhtml message: <%\html "foo\nbar" | dbg %> ``` === "Result" ``` html message: "foo\nbar" ``` !!! Note Since `dbg` filter accepts `` types, that type isn't required to implement [`Render`](https://docs.rs/sailfish/latest/sailfish/runtime/trait.Render.html) trait. That means you can pass the type which doesn't implement `Render` trait. ## Syntax - Apply filter and HTML escaping ```rhtml <%\html expression | filter %> ``` - Apply filter only ```rhtml <%- expression | filter %> ``` ## Built-In Filters Built-In filters can be found in [`sailfish::filter`](https://docs.rs/sailfish/latest/sailfish/runtime/filter/index.html) module.