Parse html especial char con description
This commit is contained in:
parent
a0d4acdf89
commit
67907a3629
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,10 @@ func parseDescription(description []string) string {
|
||||||
str := cleanStr(strings.Join(description, ", "))
|
str := cleanStr(strings.Join(description, ", "))
|
||||||
exp, _ := regexp.Compile("<[^>]*>")
|
exp, _ := regexp.Compile("<[^>]*>")
|
||||||
str = exp.ReplaceAllString(str, "")
|
str = exp.ReplaceAllString(str, "")
|
||||||
|
str = strings.Replace(str, "&", "&", -1)
|
||||||
|
str = strings.Replace(str, "<", "<", -1)
|
||||||
|
str = strings.Replace(str, ">", ">", -1)
|
||||||
|
str = strings.Replace(str, "\\n", "\n", -1)
|
||||||
return str
|
return str
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue