Revert "Fix escaped preview action javascript"

Issue was related to EscapeUtils

This reverts commit 95c9e2060e921cc9f7fa41db846aaa52cb76543a.