• This is the code I got from Amazon Audible:

    <iframe> src=”//rcm-na.amazon-adsystem.com/e/cm?o=1&p=22&l=ur1&category=audible&banner=1AM4WSA0PHD7TY463002&f=ifr&linkID=bbc32c02be43ddef913f3b0c52dee747&t=pbftcom-20&tracking_id=pbftcom-20″ width=”190″ height=”190″scrolling=”no” border=”0″ marginwidth=”0″ style=”border:none;” frameborder=”0″></iframe>

    I’ve attempted to fix it but evidently don’t have a clue. Which is not unusual. Thanks in advance for your answer!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is definitely a bug.
    I tried it with your code (fixed the quotes), and it complains about the > on the iframe tag. I’m not sure how you can escape it and have it work.
    I tried it also in a Text widget in text mode, and it’s fine, but it strips out the details of the iframe tag, so that doesn’t work.
    It looks like you might have to disable the syntax checking as a workaround. I’m not sure right now how that is done, but I’ll keep looking.

    This is the cleaned up code I tried:
    <iframe> src="//rcm-na.amazon-adsystem.com/e/cm?o=1&p=22&l=ur1&category=audible&banner=1AM4WSA0PHD7TY463002&f=ifr&linkID=bbc32c02be43ddef913f3b0c52dee747&t=pbftcom-20&tracking_id=pbftcom-20" width="190" height="190" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>

    Oh, it was simpler than I expected!
    If you read the help that is in the widget (not sure how to get it; I read the code), it says that you can disable the syntax checking by going to your User Profile.
    I tried that and it works fine.
    However, the iframe on the front end is empty, just like it was with the Text widget.
    I’m not sure what the problem is there. (I did this test on localhost.)

    Oh! I was not looking close enough! I see the problem now!
    Look very carefully at the iframe. It has
    <iframe> src=
    Notice how there is a > where there shouldn’t be? That makes the real one flagged as a special character.
    Remove that > from right after iframe and it should work.

    Edit: I feel stupid, because I didn’t see this, even though I searched for > in my editor and it highlighted that one in yellow, and I didn’t think about how there should be 2, not 3.

    • This reply was modified 5 years, 2 months ago by Joy.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom HTML Widget, Special Characters must be escaped’ is closed to new replies.