stab at fixing preview
maybe using global search and replace isnt always bad
html_safe a few things
Merge pull request #81 from extension/preview_fix

Preview fix