CaRP: Caching RSS Parser - Documentation
Channel Description
| GPL |
Koi |
Evolution |
| >=2.0 |
>=2.0 |
>=2.0 |
Displaying the Channel Description
To display the channel description, include the word "desc" in your
cborder or caorder setting.
For example:
CarpConf('cborder','link,date,desc');
Display formatting options
- bcdesc ("before channel description") : Specifies text and/or HTML to be displayed before the channel description.
- acdesc ("after channel description") : Specifies text and/or HTML to be displayed after the channel description.
- maxcdesc ("maximum channel description length") [CaRP >= 2.2.1] : Specifies the maximum number of characters (not including HTML tags) to output from the description.
If maxcdesc is zero ("0"), the entire description will be displayed, no matter how long.
- atrunccdesc ("after truncated channel description") [CaRP >= 2.2.1] : Specifies text and/or HTML to append to the description if it is longer than maxcdesc.
Note that when truncating, maxcdesc is reduced by the length of atrunccdesc so that the total length is equal to maxcdesc.
- descriptiontags ("HTML tags allowed in the description") : Specifies a pipe character ("|") separated list of HTML tag names.
Any tags other than those in the list will be removed before display.
For paired tags like <a href="..."> and </a>, you should name both tags in the list.
Only the tag name should be indicated, not the entire tag.
Example
CarpConf('caorder','desc');
CarpConf('bcdesc','<i>');
CarpConf('acdesc','</i>');
CarpConf('maxcdesc',100);
CarpConf('atrunccdesc','...');
CarpConf('descriptiontags','b|/b|i|/i');