How to get content of page preview?

Hi all, I’m developing a blueprint plugin where 2 versions of a page are displayed side by side for comparison on a separate page. I want to highlight the differences between the two versions but I’m unsure of how to get the contents of the page preview. This is what I have so far:

Appreciate any help!