标签: javascript
使用JavaScript,有没有办法将纯文本(带有特殊字符)转换为JavaScript字符串文字?
例如,有没有办法将以下文本转换为字符串文字?
"Here is some text inside quotes."Here is more text inside quotes: it's not easy to write this as a string literal, so I need to automatically convert it somehow." "