Embedding iframe code that has & in the URL not showing up

Nicole Foster's Avatar

Nicole Foster

07 Oct, 2015 04:18 PM

One of our users is looking to embed the following code into their homepage:

<iframe  height="250"  width="200" src="http://feed.mikle.com/widget/?rssmikle_url=https%3A%2F%2Fwww.google.com%2Fcalendar%2Ffeeds%2Fsucareerservices1%40gmail.com%2Fpublic%2Fbasic&rssmikle_frame_width=200&rssmikle_frame_height=250&frame_height_by_article=0&rssmikle_target=_blank&rssmikle_font=Arial%2C%20Helvetica%2C%20sans-serif&rssmikle_font_size=12&rssmikle_border=off&responsive=off&text_align=left&text_align2=left&corner=on&scrollbar=off&autoscroll=off&scrolldirection=up&scrollstep=3&mcspeed=20&sort=Old&rssmikle_title=off&rssmikle_title_bgcolor=%230066FF&rssmikle_title_color=%23FFFFFF&rssmikle_item_bgcolor=%23FFFFFF&rssmikle_item_title_length=55&rssmikle_item_title_color=%23D44500&rssmikle_item_border_bottom=on&rssmikle_item_description=title_only&item_link=off&rssmikle_item_description_length=150&rssmikle_item_description_color=%233E3D3C&rssmikle_item_date=gl1&rssmikle_timezone=Etc%2FGMT&datetime_format=%25b%20%25e%2C%20%25Y%20%25l%3A%25M%20%25p&item_description_style=text&item_thumbnail=full&item_thumbnail_selection=auto&article_num=4&rssmikle_item_podcast=off&" scrolling="no" name="rssmikle_frame" marginwidth="0" marginheight="0" vspace="0" hspace="0" frameborder="0"></iframe>

When they go to embed it using the HTML button to insert it into the page, the feature seems to parse the & to &amp; making it not show up.

Due to where they want to embed it, I can't just simply force it into an xml block since I need that part of the page flexible and easily updated. Is there a way to work around this issue so the code embed for them?

  1. 1 Posted by Ryan Griffith on 07 Oct, 2015 07:23 PM

    Ryan Griffith's Avatar

    Hi Nicole,

    The escaped ampersands should be valid and allow the iframe to render. I confirmed this in my local 7.12.5 instance by pasting the snippet you provided into a default WYSIWYG field (see attached screenshot).

    How are you outputting the contents of the WYSIWYG?

    Thanks!

  2. Ryan Griffith closed this discussion on 02 Nov, 2015 08:04 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac