Created
January 17, 2012 22:34
-
-
Save fredemmott/1629454 to your computer and use it in GitHub Desktop.
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
===== HTML mode ===== | |
<!DOCTYPE HTML PUBLIC | |
"-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<body> | |
<p> | |
Hello, | |
</p> | |
<br> | |
<p> | |
world. | |
</p> | |
<p class="bonus"> | |
& <some escaping too> | |
</p> | |
</body> | |
</html> | |
===== XHTML mode ===== | |
<!DOCTYPE html PUBLIC | |
"-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<body> | |
<p> | |
Hello, | |
</p> | |
<br /> | |
<p> | |
world. | |
</p> | |
<p class="bonus"> | |
& <some escaping too> | |
</p> | |
</body> | |
</html> | |
===== Tiny HTML mode ===== | |
<html><body><p>Hello,<br><p>world.<p class="bonus">& <some escaping too> | |
Freds-Mac-Pro:rxhp fred$ ./hello.rb | |
===== HTML mode ===== | |
<!DOCTYPE HTML PUBLIC | |
"-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<body> | |
<p> | |
Hello, | |
</p> | |
<br> | |
<p> | |
world. | |
</p> | |
<p class="bonus"> | |
& <some escaping too> | |
</p> | |
</body> | |
</html> | |
===== XHTML mode ===== | |
<!DOCTYPE html PUBLIC | |
"-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<body> | |
<p> | |
Hello, | |
</p> | |
<br /> | |
<p> | |
world. | |
</p> | |
<p class="bonus"> | |
& <some escaping too> | |
</p> | |
</body> | |
</html> | |
===== Tiny HTML mode ===== | |
<html><body><p>Hello,<br><p>world.<p class="bonus">& <some escaping too> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment