Can't use html share button with pipe | in article title



Hello, how do I make it so I can share an article with a pipe in the title. For example,

Former Trump Advisers Offering ‘Tweet Risk’ Protection | Morning Joe | MSNBC

After pressing the share button, the window with the url below doesn’t show anything, it’s blank.'Tweet%20Risk'%20Protection%20|%20Morning%20Joe%20|%20MSNBC

I’m using Blogger and have this in the code

<!-- Sharingbutton Twitter -->
                                    <a aria-label='' class='resp-sharing-button__link' expr:href='&quot;; + data:post.url + &quot;&amp;text=&quot; + data:post.title' rel='nofollow' target='_blank'>


I think this is something to do with the markup. I built this simple / minimal example:

	<body><a href="|%20Morning%20Joe%20|%20MSNBC" class="data-share-button">wibble</a><script async src="" charset="utf-8"></script></body>

That seems to work fine, so I don’t think this is to do with the pipe | character - not sure what is missing from your page.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.