do not add an extra space between text tokens
This commit is contained in:
parent
2f38a07cb5
commit
8e2a642bc0
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ func StripHTMLTags(text string) string {
|
||||||
case html.ErrorToken:
|
case html.ErrorToken:
|
||||||
return builder.String()
|
return builder.String()
|
||||||
case html.TextToken:
|
case html.TextToken:
|
||||||
builder.WriteString(token.Token().Data + " ")
|
builder.WriteString(token.Token().String() + "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue