答案 0 :(得分:2)
反馈后编辑
尝试'
。
答案 1 :(得分:2)
%26%2339%3B
转换为'
。您似乎误解了HTML实体/ url编码的原理。
下表描述了将要发生的事情:
href= * Property URL-decoded
%26%2339%3B #26%2339%3B '
%27 %27 '
' ' '
' ' ' Safe ONLY IF `href` is not marked with '
(as in `<a href='...'..'>`)
*href = Literal attribute value, as seen when viewing the source
*Property = The real value of the attribute, after parsing HTML
*URL-decoded = As received at the server's side, or through decodeURI
因此,请使用'
,%27
或'
代替%26%2339%3B
。