Not sure if this is the solution to your problem, but perhaps it will guide you in the right direction.
Without seeing the code you have to actually get the data, I'm going to speculate and make a programmatic guess with how to solve your issue.
Please see the following code:
import lxml.html as lh
import urllib2
url = 'http://loremipsum.net/about.html'
doc = lh.parse(urllib2.urlopen(url))
value = doc.xpath('//p/strong/text()')[0]
print value
Printed result:
What is 'lorem ipsum'?
By reading the about page on the lorem ipsum site, you can see that the text returned indeed has the ' in it.
I hope this helps you in the right direction.