Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想发送一个包含 "> 的值,如下所示:
<input name="address" value=""><SCRIPT SRC='http://site.com/js.js'></SCRIPT>">
我想发送确切的值"><SCRIPT SRC='http://site.com/js.js'></SCRIPT>那么我怎样才能逃避它并以 html 形式使用它呢?或者还有其他方法吗?
"><SCRIPT SRC='http://site.com/js.js'></SCRIPT>
首先,将您的 HTML 更改为:
<input name="address" value="><SCRIPT SRC='http://site.com/js.js'></SCRIPT>" />
如果要加引号,请使用转义字符串,\"如下所示:
\"
<input name="address" value="\"><SCRIPT SRC='http://site.com/js.js'></SCRIPT>" />