Fixes escaping in Preview , issue #18

This fixes #18 for the Preview