admin管理员组文章数量:1318156
Is there a way to encode a line break into a string without using any HTML entities or tags? Specifically, I would like a string that I pass into the dojox.gfx renderer to display a line break.
Is there a way to encode a line break into a string without using any HTML entities or tags? Specifically, I would like a string that I pass into the dojox.gfx renderer to display a line break.
Share Improve this question asked Jul 25, 2012 at 19:52 allenylzhouallenylzhou 1,4614 gold badges19 silver badges36 bronze badges 1- usually \n is the charachter representing a line break, but I don't know dojox.gfx – Naigel Commented Jul 25, 2012 at 19:55
1 Answer
Reset to default 4You can escape it with \n
or \u000A
, see:
How do I break a string across more than one line of code in JavaScript?
本文标签: javascriptEncoding a line break in a string without using HTMLStack Overflow
版权声明:本文标题:javascript - Encoding a line break in a string without using HTML - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742043403a2417652.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论