commit c1f15729f4502e5f6179266b508f02ac3e3b301e (patch)
parent 3816e95226c17819ddaaf01a676522698b5edc52
Author: Alex Karle <alex@alexkarle.com>
Date: Thu, 23 Dec 2021 21:18:27 -0500
Remove escaping of single/double quotes
I don't think this is really ever necessary. It would be _in_ the HTML
tags, but we don't support that except for in link href's, and there
shouldn't be quotes in the URL's anyways :)
This just makes the resulting HTML a bit cleaner.
Diffstat:
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/blag.c b/blag.c
@@ -55,8 +55,6 @@ void putesc(int c) {
case '<': printf("<"); break;
case '>': printf(">"); break;
case '&': printf("&"); break;
- case '"': printf("""); break;
- case '\'': printf("'"); break;
default: putchar(c);
}
}
diff --git a/test/big.html b/test/big.html
@@ -6,7 +6,7 @@ This is an example blag file!
<em>This should be emphasized within a paragraph</em>
</p>
<p>
-<strong>As should this bold</strong>
+<strong>As "should" this bold</strong>
</p>
<p>
<code>and code!</code>
diff --git a/test/big.txt b/test/big.txt
@@ -4,7 +4,7 @@ This is an example blag file!
_This should be emphasized within a paragraph_
-*As should this bold*
+*As "should" this bold*
`and code!`