- I only want feed items that have one or more categories, that's why I have the {%?ITEM-METADATA% category/id}{%@%}{%ENDIF%} qualification.
- For each row I only want the following fields: Awasu ID, Feed Item Title, and a single Category
Code: Select all
{%REPEAT% FeedItems}{%REPEAT% category}{%?ITEM-METADATA% category/id}"{%ITEM-METADATA% awasuId}" "{%ITEM-METADATA% name! encode=csv chars="}" "{%@%}"{%ENDIF%}
{%/REPEAT%}{%/REPEAT%}
"7915" ""John Hodgman and others read the After On audiobook"
"7915" ""John Hodgman and others read the After On audiobook"
"7915" ""John Hodgman and others read the After On audiobook"
"7916" ""This 101-year old woman is having a good time making snowballs"
"7916" ""This 101-year old woman is having a good time making snowballs"
"7916" ""This 101-year old woman is having a good time making snowballs"
"7917" ""Rock your way to crushed garlic"
"7917" ""Rock your way to crushed garlic"
"7918" ""Man with stick calmly convinces charging elephant not to run him over"
"7918" ""Man with stick calmly convinces charging elephant not to run him over"
"7919" ""Two GOP lawmakers: ""It's time for Jeff Sessions to go"""
"7919" ""Two GOP lawmakers: ""It's time for Jeff Sessions to go"""
"7919" ""Two GOP lawmakers: ""It's time for Jeff Sessions to go"""
"7920" ""Wonderful article about dogs"
"7920" ""Wonderful article about dogs"
"7920" ""Wonderful article about dogs"
The problem is that some of the feed item's titles have a quotation mark character in them so I wanted to escape the quotation mark (see Awasu ID 7919 above).
I tried various values of encode= with and without chars=", but I haven't found the right combination to make it work.
Note the double quotation mark before the Feed Item Title, but there isn't a double quotation mark after the Feed Item Title.
And with some combinations the Category doesn't even show up at all, like in the excerpt above.
If I remove the encode= and chars=" attributes the Categories do appear in the output, but the quotation marks aren't getting escaped.
I could fix the file in a post-processing step, but I thought I'd ask you if this is a bug



Thanks in advance for your help!!!