• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

iFrame related topic

 
Ashutosh Arya
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using below tag

<iframe class="abc" src="javascript:'& lt;html& gt;& lt;/html& gt;';" scrolling="no" frameborder="0"></iframe>

But when the page is rendered and I do a view source it is being rendered as <iframe class="abc" src="javascript:'<html& gt;</html& gt;';" scrolling="no" frameborder="0"></iframe>
which is breaking other code.

Can we get/render this as '>' in place of this '& gt;' when used with iFrame?

Note: I have intentionally put space between '&' 'gt' so that I can display the issue.

Thanks in advance.

Ashu
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashutosh Arya wrote:Note: I have intentionally put space between '&' 'gt' so that I can display the issue.

I still have no idea what you are after. What do you intend for the src value to be?
 
Miku Ranjan
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can yoy show your full code and how it is looking after breaking.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Miku Ranjan wrote:Can yoy show your full code and how it is looking after breaking.

Please do not. It's not necessary to see much more and it'll just confuse the issue. Please initially just show us what you intend for the value of the src attribute to be.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic