var $tagList = new WCF.Tagging.TagList('#tagList{if $tagInputSuffix|isset}{@$tagInputSuffix}{/if}', '#tagSearchInput{if $tagInputSuffix|isset}{@$tagInputSuffix}{/if}', {@TAGGING_MAX_TAG_LENGTH});
{if $tags|isset && $tags|count}
- $tagList.load([ {implode from=$tags item=tag}'{$tag}'{/implode} ]);
+ $tagList.load([ {implode from=$tags item=tag}'{$tag|encodeJS}'{/implode} ]);
{/if}
});
//]]>
load: function(data) {
if (data && data.length) {
for (var $i = 0, $length = data.length; $i < $length; $i++) {
- this.addItem({ objectID: 0, label: data[$i] });
+ this.addItem({ objectID: 0, label: WCF.String.unescapeHTML(data[$i]) });
}
}
}