summaryrefslogtreecommitdiffstats
path: root/content.go
diff options
context:
space:
mode:
authorclsr <clsr@clsr.net>2021-12-23 01:54:47 +0000
committerclsr <clsr@clsr.net>2021-12-23 02:51:49 +0000
commit43428e759d9fbc5a319c2b929bfb4469938cc386 (patch)
tree1ee452ff23249bf10653481599f8639aa46ceb25 /content.go
parent690a7183d7eca35b59e23e556b0c6492df08ffa5 (diff)
downloadcnm-go-43428e759d9fbc5a319c2b929bfb4469938cc386.tar.gz
cnm-go-43428e759d9fbc5a319c2b929bfb4469938cc386.zip
Add EscapeAll and escape all spaces in linksHEADv0.4.2master
Diffstat (limited to 'content.go')
-rw-r--r--content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/content.go b/content.go
index dbe0fa4..572305a 100644
--- a/content.go
+++ b/content.go
@@ -589,7 +589,7 @@ func (e *EmbedBlock) WriteIndent(w io.Writer, n int) error {
} else {
s += Escape(e.Type)
}
- s += " " + Escape(e.URL)
+ s += " " + EscapeAll(e.URL)
if err := WriteIndent(w, s, n); err != nil {
return err
}