Advertisement
AntyalTennyson

add-zero-width-space.html

Mar 26th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.00 KB | None | 0 0
  1. <html><head><title>Add Zero Width Space For Twitter Posts</title></head><body>
  2. <p>Enter text: <input id="tweet" onkeyup="document.getElementById ('result').innerHTML=this.value.replace(/([@#\.])/ig, '$1&#8203;');" type="text"></p>
  3. <p><span id="result" style="background:lightyellow">&gt; Result will display here. &lt;</span></p>
  4. <p>Enter some text in the input box above and it will automatically add a &quot;zero width space&quot; after every dot, #hash or @mention. You can then copy-paste the converted text into your Twitter and none of the words will be converted into hyperlinks.</p>
  5. <p>Original Credit: Amit Agarwal</p>
  6. <p>Original Article: http://www.labnol.org/internet/twitter-auto-converts-links/20771/</p>
  7. <p>Original Tool: http://www.labnol.org/internet/twitter-auto-converts-links/20771/#tweet</p>
  8. <p>Simplified Tool for local archive: <a href="https://twitter.com/AntyalTennyson">@AntyalTennyson</a> (<a href="http://pastebin.com/LepZacXJ">Source of this file on Pastebin.com</a>)</p>
  9. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement