带有撇号的文本在twitter中不起作用。现在我使用这个字符代码( %26%2339%3B )表示撇号。它在facebook上运行得很好,但在twitter上却不起作用,它在我们的成功故事摘要http://www.rangde.org/success-stories/january-2012/jan-2012.html中显示了9坦德拉的苗木,Golapi的袋子制造业务等。我的html是js小提琴是here
发布于 2012-01-05 23:10:56
%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。
发布于 2012-01-05 19:14:40
反馈后编辑
试试'。
https://stackoverflow.com/questions/8741406
复制相似问题