mercredi 28 janvier 2015

Problem with parsing value in item style



I implemented content query webpart (CTWQ), which displays all items from a list. Inside Item Style, I pours gained data to a Json Object. This did not worked until I filled a special data inside a Multiple-lines-of-text Field that contains a special character, namely

. it would throws Unexpected token ILLEGAL. the code block as bellow:



{
src: "<xsl:value-of disable-output-escaping="yes" select="$SafeImageUrl"/>",
description: "<xsl:value-of disable-output-escaping="yes" select="@Description"/>",
url: "<xsl:value-of disable-output-escaping="yes" select="$SafeLinkUrl"/>"
}


I tried to used "disable-output-escaping" but does not work. Please tell me how to get safe value from this kind of field?








0 commentaires:

Enregistrer un commentaire