HTML and javascript errors in CustomPress

Hi @Arnold

CustomPress seems to be rendering some invalid code in both the front end and the admin panel that is causing issues with all my sites across my network.

1. When I look at any site on my network I see the error in screenshot 1
2. I setup a test site to fault find an issue custom press seemed to be causing Gravity forms and saw the error in screenshot 2
3. When I save a Gravity Form while custom press is enabled, it inserts the characters rnrn in between all paragraph breaks of the notifications. See screenshot 3. Note the rn characters in the html editor of the notifications panel as well as the "TypeError" in the bottom panel.

The above issues all go away when CustomPress is disabled.

If you could take a look at this it would be much appreciated.
Chris