I'm storing HTML code within an element attribute like so.
<div data-html-code="<iframe width="560" height="315" src="https://www.youtube.com/embed/sNhhvQGsMEc" frameborder="0" allowfullscreen></iframe>"></div>
How can I escape all the necessary characters to make this valid using jQuery/Javascript?