Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jekyll embed iframe don't work

I search a lot in both google and here in SO, but I did not find the answer.

I use jekyll, and in the about-me page, I what to embed this , the given iframe looks like this:

<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=298 height=52 src="http://music.163.com/outchain/player?type=2&id=29750802&auto=0&height=32"></iframe>

I used it in my about-me page like this:

{% raw %}
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=298 height=52 src="http://music.163.com/outchain/player?type=2&id=29750802&auto=0&height=32"></iframe>
{% endraw %}

It looks like all right but it did not work, instead of what I wanted, it shows raw text not the iframe.

I have tried nearly everything and still not working...

like image 223
shellbye Avatar asked Apr 22 '15 03:04

shellbye


1 Answers

As I said, I tried everything. And finally when I add double quotes to

width=298 height=52

like this:

width="298" height="52"

It finally worked!

I checked on youtube, and I find that youtube did quote the width and height in the first place. So I think some site may need some kind of change, like the site I used.

like image 183
shellbye Avatar answered Oct 23 '22 16:10

shellbye