Skip to content

Commit 7bd2e6c

Browse files
Update cleaner.go
Co-authored-by: Sarah Vessels <[email protected]>
1 parent 09b9b87 commit 7bd2e6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/generate/cleaner.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ func Unbracket(text string) string {
4040
return text
4141
}
4242

43-
func UnXml(text string) string {
43+
// Unxml removes leading and trailing XML tags, like `<foo>` and `</foo>`, from the given string.
44+
func Unxml(text string) string {
4445
// if the string starts with <foo> and ends with </foo>, remove those tags
4546
trimmed := strings.TrimSpace(text)
4647

0 commit comments

Comments
 (0)