For web developers

If you’d like to add a “Text only” link to your own web-site, just add the following snippet of script at the position in your page where you’d like the link to go:

<script language=”javascript”>document.write(“<a href=’; + escape(escape(location.href)) + “‘ class=’textiseAnchor’>Text only</a>”);</script>

This will work on (almost) any page. Note: For some reason, you can’t select text from WordPress blogs in IE7/8, so if you’d like to copy the script you’ll have to view this page in Firefox or Google Chrome. (Apologies – haven’t tried IE-earlier or Opera or Safari or any other browsers.)

There – look how much time and effort I saved you!

I’ve added a class to the anchor tag so you can control how the link displays with a bit of CSS.

An alternative is to add a link like this to your page:

<a href=’ OF YOUR PAGE’ class=’textiseAnchor’>Text only</a>

The down-side of this is that you’d have to explicitly specify the exact address of a page every time you add the link: the first version works it out for you. However, in situations where Javascript isn’t an option (e.g. in WordPress!), this would do the trick. You’ll find a “Text only” link on the right of this page that uses this method.

Note that Textise can struggle with query strings – so I’d advise you to double URL-encode any addresses that contain them. (Double URL-encoding is necessary to make sure the URL gets to Textise in the first place, at which point it’s decoded.)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s