Skip to content

Instantly share code, notes, and snippets.

@shaunluttin
Last active June 18, 2018 16:01
Show Gist options
  • Save shaunluttin/e517f08f68510642079034d64def7afb to your computer and use it in GitHub Desktop.
Save shaunluttin/e517f08f68510642079034d64def7afb to your computer and use it in GitHub Desktop.
Inner HTML vs Attribute
<code-sample>
<ul>
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
</ul>
<p>a paragraph</p>
</code-sample>
vs
<code-sample lang="cs" sample="
<ul>
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
</ul>
<p>a paragraph</p>
"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment