We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09b9b87 commit 7bd2e6cCopy full SHA for 7bd2e6c
cmd/generate/cleaner.go
@@ -40,7 +40,8 @@ func Unbracket(text string) string {
40
return text
41
}
42
43
-func UnXml(text string) string {
+// Unxml removes leading and trailing XML tags, like `<foo>` and `</foo>`, from the given string.
44
+func Unxml(text string) string {
45
// if the string starts with <foo> and ends with </foo>, remove those tags
46
trimmed := strings.TrimSpace(text)
47
0 commit comments