I tried implementing the suggestion below, adding the following code in the :

<script type="text/javascript">
// this will be the click handler for all elements with the "tweetable_quote" class.
$(".tweetable_quote").on('click',function(){
// $(this) refers to the element that was clicked.
var text = $(this).text();
window.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(text));
});
</script>
<span class="tweetable_quote">This is some quotable text.</span>

// this will be the click handler for all elements with the "tweetable_quote" class.
$(".tweetable_quote").on('click',function(){
// $(this) refers to the element that was clicked.
var text = $(this).text();
window.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(text));
});

encodeURIComponent - Encodes a Uniform Resource Identifier (URI) component by replacing
each instance of certain characters by one, two, three, or four escape
sequences representing the UTF-8 encoding of the character (will only
be four escape sequences for characters composed of two "surrogate"
characters).