Hello all,
The Feed Explorer is not correctly displaying HTML images. For example, the Yahoo Top Stories RSS feed contains images, but these aren't showing in the rendered HTML. The problem has to do with this code segment in lines 449 thru 455 of the /Resources/FeedBrowser/scripts/feedbrowser.js file:
// First pass -- replace data tokens surrounded by [[ ]]
for(var attribute in itemData)
{
var dataValue = (allowHtml ? itemData[attribute].xmlEntityReplace() : itemData[attribute]);
// Replace the token with the actual data value
formattedItem = formattedItem.replaceAll("[[" + attribute + "]]", dataValue.replaceAll("'","'").replaceAll("\"",""").replaceAll(",",",").replaceAll("\n"," "));
}
Can anyone explain why apostrophes and double quotes are being escaped that way? My workaround is to simply pass the "dataValue" variable as is, that is, as shown below:
// First pass -- replace data tokens surrounded by [[ ]]
for(var attribute in itemData)
{
var dataValue = (allowHtml ? itemData[attribute].xmlEntityReplace() : itemData[attribute]);
// Replace the token with the actual data value
formattedItem = formattedItem.replaceAll("[[" + attribute + "]]", dataValue ); // commented out -> .replaceAll("'","'").replaceAll("\"",""").replaceAll(",",",").replaceAll("\n"," ")
}
Doing this has no side-effects that I know of. Thanks in advance.