YodaSpow / EmailDevTools

EmailTools
https://codepen.io/spowart/details/abWzBwR
7 stars 1 forks source link

Toggle Adobe Campaign scripts OFF in browser: inside innerHTML #44

Open YodaSpow opened 5 years ago

YodaSpow commented 5 years ago

Toggle Adobe Campaign scripts OFF in browser: inside innerHTML Have the ability to toggle OFF Adobe Campaign personalization code script that sits in the browser for local testing of rendering

var commentEJS = /(<%).*(%>)/g;
document.body.innerHTML = document.body.innerHTML.replace(commentEJS, "<!-- $&-->");