Skip to content

Commit

Permalink
Replacing <br> tags
Browse files Browse the repository at this point in the history
  • Loading branch information
f1mishutka committed Nov 17, 2022
1 parent 492347e commit 0315225
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ func PrepareTelegramHtml(input string) (r string) {

r = strings.ReplaceAll(r, "&nbsp;", " ")

r = strings.ReplaceAll(r, "<br>", "\n")
r = strings.ReplaceAll(r, "<p>", "")
r = strings.ReplaceAll(r, "</p>", "\n")

Expand Down

0 comments on commit 0315225

Please sign in to comment.