Hello, I am receiving the following output, which I am assuming is an error, when I enter my HTML code into the HTML module.
Here is a cleansed version of the code that I am entering into the HTML Module.
<link href=‘https://domain.com/css/style-embed.css’ rel=‘stylesheet’ type=‘text/css’ /><script>window.yepnope || document.write(’<script src=“https://domain.com/assets/filename-min.js”></script>’);</script><script src=‘https://domain.com/link?format=js&source=widget’></script><div id=‘text’ style=‘width: 100%’><!-- this div is the target for our HTML insertion --></div>
Am I not able to do it this way?
Odd behavior is that I can see the external data load when I have entered the HTML code, however upon saving/publishing the page is when I am receiving the error.
Thanks for your help.
Assuming domain.com a placeholder? I think I figured out what’s going on here, but I can’t confirm it without having the live domain/files.
It looks like there is an extra closing tag on your closing script tag: </script>
Also, this might be a side affect of posting on our forums, but it looks like you’re using curly opening and closing single quotes. When writing code, it’s generally best to use straight quotes.
Changing those two things prevented the code from throwing the ');
Give this a try and see if it works on your end:
<link href='https://domain.com/css/style-embed.css' rel='stylesheet' type='text/css' />
window.yepnope || document.write('<script src="https://domain.com/assets/filename-min.js"><\script>');
<div id='text' style='width: 100%'></div>
I copy/pasted that code directly into a fresh page and it seems to render just fine. I still see the '); so there’s probably a typo in there somewhere still, but the embedded form is working.
Can you try creating a fresh page and copying that code into and HTML module. Maybe something else on the page that you’re working on is interfering.
Just to confirm, is the issue that the form isn’t rendering at all, or that the '); is still there?
No, the issue is that I cannot get the form to render at all.
Joe, did you try creating the form on a blank page?
If you can provide me with login details for the site, I can jump in and see if maybe there’s another issue (like a plugin conflict) that wouldn’t be happening on my end.