Skip to content

Commit

Permalink
feat: unescape html entities (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov authored Nov 11, 2024
1 parent 4ebc3d7 commit 5994cce
Show file tree
Hide file tree
Showing 11 changed files with 66 additions and 65 deletions.
3 changes: 2 additions & 1 deletion generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"bytes"
"encoding/json"
"fmt"
"html"
"os"
"path/filepath"
"regexp"
Expand Down Expand Up @@ -619,7 +620,7 @@ func readConfig(path string) (map[string][]string, error) {
var reComment = regexp.MustCompile(`\.?[\r\n]+\s*?`)

func fmtComment(c string) string {
return reComment.ReplaceAllString(c, ". ")
return html.UnescapeString(reComment.ReplaceAllString(c, ". "))
}

// fmtQueryParam returns a query param
Expand Down
6 changes: 4 additions & 2 deletions handler/account/account.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion handler/accountteam/accountteam.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion handler/applicationuser/applicationuser.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 16 additions & 14 deletions handler/billinggroup/billinggroup.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5994cce

Please sign in to comment.