on rssTruncate ( description, adrpost ) { local ( s = html.getOneTagValue ( description, "P" ) ); if ( s == "" ) { s = string.firstSentence ( description ); s = string.replace ( s, "

", "", false ); }; local ( w = string.replace ( description, "

", "", false ) ); w = string.replace ( w, "

", "", false ); if ( string.length ( s ) != string.length ( w ) ) { local ( itemno = nameOf ( adrpost^ ) ); regex.subst( "^0+", "", @itemno ); local ( d = adrpost^.when ); d = date.year ( d ) + "/" + string.padWithZeros ( date.month ( d ),2 ) + "/" + string.padWithZeros ( date.day ( d ),2 ); local ( k = radio.macros.homePageUrl() + d + ".html#a" + itemno ); s = s + " [read more]"; }; regex.subst ( "]*>", "[img] ", @s ); return ( s ); };