From 43428e759d9fbc5a319c2b929bfb4469938cc386 Mon Sep 17 00:00:00 2001 From: clsr Date: Thu, 23 Dec 2021 01:54:47 +0000 Subject: Add EscapeAll and escape all spaces in links --- content.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content.go') 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 } -- cgit