mirror of https://github.com/velour/catbase.git
Merge pull request #126 from velour/nerdepeida
I'll see your double escaping, and raise you triple unescaping.
This commit is contained in:
commit
31afe9b188
|
@ -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 == "" {
|
||||
|
|
Loading…
Reference in New Issue