在浏览这篇文章之后,我试图转义引号,但是在HTML引号中使用反斜杠不能转义右双引号”
,请注意它与普通的"
不同。
例如:
正常工作:
powershell -noexit -command $str = \"hello '123' world\"; write-host $str
无法正常工作:
powershell -noexit -command $str = \"hello '123'” world\"; write-host $str
我该如何逃避这个问题?或者更好的方法是如何一次性逃避所有字符以摆脱这个麻烦!