admin管理员组文章数量:1415137
How do I escape apostrophes / single quotes in ASP XML?
<asp:Button ID="myButton" runat="server"
OnClientClick='confirm("How do you escape this apos'trophe?")' />
How do I escape apostrophes / single quotes in ASP XML?
<asp:Button ID="myButton" runat="server"
OnClientClick='confirm("How do you escape this apos'trophe?")' />
Share
Improve this question
edited Aug 24, 2012 at 14:55
Craig Ringer
326k80 gold badges735 silver badges813 bronze badges
asked Apr 15, 2010 at 19:27
Joe PhillipsJoe Phillips
51.3k33 gold badges108 silver badges166 bronze badges
2 Answers
Reset to default 6<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'trophe?")' />
本文标签: aspnetEscape apostrophe in aspx fileStack Overflow
版权声明:本文标题:asp.net - Escape apostrophe in aspx file - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745226105a2648614.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论