• I added the following code, but the html editor within wordpress adds BR tags and changes the “&” to “&#0338”.

    How do I retain this code as is in a WP page?

    <iframe id="forum_embed"
      src="javascript:void(0)"
      scrolling="no"
      frameborder="0"
      width="630"
      height="700">
    </iframe>
    <script type="text/javascript">
      document.getElementById('forum_embed').src =
         'https://groups.google.com/a/mywebsite.com/forum/embed/?place=forum/xplore'
         + '&showsearch=false&showpopout=false&showtabs=false'
         + '&parenturl=' + encodeURIComponent(window.location.href);
    </script>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The HTML editor is just for HTML.
    You ought to enqueue your javascript instead.

    Thread Starter wpjongleur

    (@wpjongleur)

    Could you please tell me how to do that? Where would I put the code i have here and where and how would I use enqueue? please help.
    thanks,
    Jongleur

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to retain the text in HTML editor’ is closed to new replies.