Skip to content

Instantly share code, notes, and snippets.

@eirikbakke
Created July 2, 2011 00:18
Show Gist options
  • Save eirikbakke/1059621 to your computer and use it in GitHub Desktop.
Save eirikbakke/1059621 to your computer and use it in GitHub Desktop.
Generating an empty iframe tag from JSP
<!-- Not like this: -->
<iframe width="560" height="349" src="http://www.youtube.com/embed/FaMTedT6P0I" />
<!-- Nor like this (JSP will just convert it to use a self-closing tag as above): -->
<iframe width="560" height="349" src="http://www.youtube.com/embed/FaMTedT6P0I"></iframe>
<!-- But like this (tell JSP to output the elements exactly like we wrote them): -->
<![CDATA[
<iframe width="560" height="349" src="http://www.youtube.com/embed/FaMTedT6P0I"></iframe>
]]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment