Skip to content

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

Description

@YodaSpow

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, "<!-- $&-->");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions