Reputation: 6209
text with apstrophe is not working in the twitter. Now i am using this character code( %26%2339%3B ) for apstrophe. It's working fine in facebook but it's not working in twitter, and it's showing like this 9 Tandra's plant nursery, Golapi's bag making business and more in our Success Story Digest http://www.rangde.org/success-stories/january-2012/jan-2012.html ). my html is my js fiddle is here
Upvotes: 0
Views: 955
Reputation: 349132
%26%2339%3B
translates to '
. You seem to misunderstand the principle of HTML entities / url encoding.
The following table describes what's going to happen:
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
So, use '
, %27
or '
instead of %26%2339%3B
.
Upvotes: 3