Skip to content

Commit

Permalink
fix: remove <br /> tags when parsing input/output files
Browse files Browse the repository at this point in the history
  • Loading branch information
lcian committed Jun 1, 2024
1 parent 99fdd18 commit 4fc84e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func findSample(body []byte) (input [][]byte, output [][]byte, err error) {
src = tagRegex.ReplaceAll(src, []byte("\n"))
src = bytes.ReplaceAll(src, []byte("\n\n"), []byte("\n"))
s := html.UnescapeString(string(src))
s = strings.ReplaceAll(s, "<br />", "\n")
return []byte(strings.TrimSpace(s))
}

Expand Down

0 comments on commit 4fc84e9

Please sign in to comment.