fixing html_safe + pretty + dynamic

The combination of pretty + dynamic + html_safe ends up escaping html_safe output.