开发者

Escape apostrophe in aspx file

How do I escape apostrophes / single quotes in ASP.net XML?

<asp:Button ID="myButton" runat="server"
    OnClientClick='confirm("How do you escape this 开发者_运维问答apos'trophe?")' />


<asp:Button ID="btnClone" runat="server" OnClick="btnClone_Click"
    OnClientClick="confirm('How do you escape this apos\'trophe?')" />


<asp:Button ID="myButton" runat="server"
    OnClientClick='confirm("How do you escape this apos&#39;trophe?")' />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜