Created
July 2, 2011 00:18
-
-
Save eirikbakke/1059621 to your computer and use it in GitHub Desktop.
Generating an empty iframe tag from JSP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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