Skip to content

Commit dea9fb6

Browse files
committed
Encode < > as &lt; &gt;
1 parent cc73622 commit dea9fb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,5 +1108,7 @@ func escapeWikiChars(inStr string) string {
11081108
outStr = str.Replace(outStr, "]", ")", -1)
11091109
outStr = str.Replace(outStr, "|", ",", -1)
11101110
outStr = str.Replace(outStr, "=", "-", -1)
1111+
outStr = str.Replace(outStr, "<", "&lt;", -1)
1112+
outStr = str.Replace(outStr, ">", "&gt;", -1)
11111113
return outStr
11121114
}

0 commit comments

Comments
 (0)