===== Change the output of the RSS or Atom feed ===== This section describes how you can customize the output of entries and comments in the RSS or Atom feed. ==== FAQ ==== **Q:** Where are the templates for RSS and Atom in FlatPress? **A:** ///fp-interface/sharedtpls// ([[https://github.com/flatpressblog/flatpress/blob/master/fp-interface/sharedtpls/rss.tpl|rss.tpl]], [[https://github.com/flatpressblog/flatpress/blob/master/fp-interface/sharedtpls/atom.tpl|atom.tpl]], [[https://github.com/flatpressblog/flatpress/blob/master/fp-interface/sharedtpls/comment-rss.tpl|comment-rss.tpl]], [[https://github.com/flatpressblog/flatpress/blob/master/fp-interface/sharedtpls/comment-atom.tpl|comment-atom.tpl]]) ==== Syntax ==== Example: {$content|tag:the_content|strip_tags|strip|truncate:180:"...":true|escape} //strip_tags:// Removes all HTML and PHP tags from the text to ensure that the content is plain text. //strip:// Removes unnecessary spaces or line breaks at the beginning and end of the text as well as superfluous spaces within the content. //truncate:180:“...”:true:// Truncates the text to 180 characters. If the text is truncated, ... is added at the end. The additional parameter true ensures that words are not truncated in the middle. //escape:// Masks special characters in HTML to prevent security problems such as cross-site scripting (XSS). For example, characters such as <, > and & are converted to <, > and &.