Beispiel #1
0
 /**
  * Builds description tag content used in RSS outputs.
  *
  * 	@param 		String 	Text to build description from.
  *	@param 		Array 	Options to consider building description.
  *
  * 	@return 	String 	Description.
  *
  */
 protected function getItemDescription($text, $options)
 {
     // @TODO VBV-11108 description should be plain text only, replace this to use plain text parser when implemented
     if (!empty($options['fulldesc'])) {
         $description = vB_String::htmlSpecialCharsUni(vB_String::fetchCensoredText(vB_String::stripBbcode($text, true, false, true, true)));
     } else {
         $description = vB_String::htmlSpecialCharsUni(vB_String::fetchCensoredText(vB_String::fetchTrimmedTitle(vB_String::stripBbcode($text, true, false, true, true), vB::getDatastore()->getOption('threadpreview'))));
     }
     return $description;
 }