Skip to content

Commit

Permalink
Encode < > as &lt; &gt;
Browse files Browse the repository at this point in the history
  • Loading branch information
samuell committed Aug 16, 2016
1 parent cc73622 commit dea9fb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1108,5 +1108,7 @@ func escapeWikiChars(inStr string) string {
outStr = str.Replace(outStr, "]", ")", -1)
outStr = str.Replace(outStr, "|", ",", -1)
outStr = str.Replace(outStr, "=", "-", -1)
outStr = str.Replace(outStr, "<", "&lt;", -1)
outStr = str.Replace(outStr, ">", "&gt;", -1)
return outStr
}

0 comments on commit dea9fb6

Please sign in to comment.