Doug,
I was successfully using your FirstWords code, until today when it was causing the page to stop functioning.
The text I was truncating is from an RSS feed where I have a macro that takes various parameters, including how many words of the post text should be displayed. The post in question is returning this as the HTMLStripped (description):
Code:
An email I received from the Free Press Action Fund ... It takes just a moment to show your support to the FCC. The issue of Net Neutrality affects anyone who uses the web for entertainment – or business. The Email: "I'm a guy who sees nothing good having come from the Internet. Period." Michael Lynton CEO of Sony Pictures
When I put in debug code to narrow down where the code stopped working, I see it is breaking right after "Email:", where the ampersand is. I don't know why it should cause a problem. It seems to me that ""I'm" should just be recognized as a single word...
I have the macro set to return 47 words, but it is only returning 41 words:
Code:An email I received from the Free Press Action Fund ... It takes just a moment to show your support to the FCC. The issue of Net Neutrality affects anyone who uses the web for entertainment – or business. The Email: ...
If I set the macro to 100 words, which was what my original preference was, it seems to run too long or something because in Firefox the whole page errors with:
XML Parsing Error: no element found
Location: http://www.wholewebimpact.com/test.aspx
Line Number 1, Column 1:Have you encountered this issue? Any tips on how to resolve it?
Thanks!
Heather
Whole Web Impact |
Floyd Innovations LLC |
Heather Floyd's Blog