Added escape for quotation mark when exporting

The added code is in the savePage() function and should be moved to a
new function.