Created
July 22, 2015 15:57
-
-
Save aaizemberg/18f490919a30a1ed82b7 to your computer and use it in GitHub Desktop.
text & html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<meta charset="utf-8"> | |
<title>text vs html</title> | |
</head> | |
<body> | |
<p>m³</p> | |
<script> | |
d3.select("body").append("p").text("m³"); | |
// |||| | |
// ||---- text | |
d3.select("body").append("p").html("m³"); | |
// |||| | |
// ||---- html | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment