Escapers
CEO provides a number of useful escapers beyond the standard set found in Twig.
embeds
Parse embedded media in a string, return raw string with embeds converted to local templates. As this escaper is HTML-safe, raw
filter is not required.
Example
{{ article.content|e('embeds') }}
rss
Remove common characters that bork RSS/XML feeds. This will also remove any embedded content from CEO.
Example
{{ article.content|e('rss') }}
strip
Strip embedded media in a string, return raw string. The opposite of embeds
escaper.
Example
{{ article.content|e('strip') }}