From 265fe441b42b959ff9734773b6ec01a195fb1e3e Mon Sep 17 00:00:00 2001 From: skkiesel Date: Sat, 19 Jan 2019 09:02:50 -0500 Subject: [PATCH] I'll see your double escaping, and raise you triple unescaping. But seriously, double unescaping. --- plugins/nerdepedia/nerdepedia.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nerdepedia/nerdepedia.go b/plugins/nerdepedia/nerdepedia.go index 473c56e..5c2373f 100644 --- a/plugins/nerdepedia/nerdepedia.go +++ b/plugins/nerdepedia/nerdepedia.go @@ -65,7 +65,7 @@ func (p *NerdepediaPlugin) Message(message msg.Message) bool { if description == "" { index := strings.Index(line, descriptionPrefix) if index >= 0 { - description = html.UnescapeString(strings.TrimSuffix(strings.TrimPrefix(line, descriptionPrefix), closingTagSuffix)) + description = html.UnescapeString(html.UnescapeString(strings.TrimSuffix(strings.TrimPrefix(line, descriptionPrefix), closingTagSuffix))) } } if link == "" {