1
0
mirror of https://github.com/velour/catbase.git synced 2025-04-04 04:01:42 +00:00

Merge pull request #126 from velour/nerdepeida

I'll see your double escaping, and raise you triple unescaping.
This commit is contained in:
Scott Kiesel 2019-01-19 09:03:39 -05:00 committed by GitHub
commit 31afe9b188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 == "" {