I'll see your double escaping, and raise you triple unescaping. But seriously, double unescaping.

This commit is contained in:
skkiesel 2019-01-19 09:02:50 -05:00
parent 29af299074
commit 57f8470dcb
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ func (p *NerdepediaPlugin) Message(message msg.Message) bool {
if description == "" { if description == "" {
index := strings.Index(line, descriptionPrefix) index := strings.Index(line, descriptionPrefix)
if index >= 0 { 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 == "" { if link == "" {