Skip to content

Commit

Permalink
escape & in documentation (fixed issue HaxeFoundation#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Jul 26, 2012
1 parent bdba17e commit 9796f0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ let error ctx msg p =
ctx.has_error <- true

let htmlescape s =
let s = String.concat "&amp;" (ExtString.String.nsplit s "&") in
let s = String.concat "&lt;" (ExtString.String.nsplit s "<") in
let s = String.concat "&gt;" (ExtString.String.nsplit s ">") in
s
Expand Down

0 comments on commit 9796f0f

Please sign in to comment.