我怎么能用撇号发推文

时间:2012-01-05 11:03:44

标签: html twitter

带有apstrophe的文本在twitter中无法正常工作。现在我使用这个字符代码(%26%2339%3B)用于apstrophe。它在facebook上工作得很好,但它不是在twitter上工作,它显示了这个9 Tandra的植物托儿所,Golapi的包制作业务以及更多我们的成功故事摘要http://www.rangde.org/success-stories/january-2012/jan-2012.html)。我的html是我的js小提琴是here

2 个答案:

答案 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&#39;代替%26%2339%3B