Paul Holbrook takes a different approach to RSS truncation. He presents the entire lead paragraph, like so:
on firstPara(description, adrpost) {
return (html.getOneTagValue(description,"P"))}The description is stored in HTML, so getOneTagValue conveniently does exactly what I want.
Of course, if the first tag in my description isn't a P, this won't do what I want it to do. I'll work on that another time. [ Paul Holbrook's Radio Weblog ]
I'm trying it now...yup, that's the ticket. Thanks, Paul!
Former URL: http://weblog.infoworld.com/udell/2002/04/11.html#a186