How to create a javascript string in razor

前端 未结 3 560
情书的邮戳
情书的邮戳 2021-02-18 22:51

I have seen some posts regarding this topic and a few blogs, but none seem to mention the output I\'m getting.

What I want is to generate a google maps map with informat

3条回答
  •  执笔经年
    2021-02-18 23:38

    You don't want to call JavaScriptStringEncode on the entire string, that will also encode your literal indicators (which are being converted to \u0027 in your example). Instead, call it on each item in your array like this:

    
    

提交回复
热议问题