Only obfuscate ascii characters. [jgm/peg-markdown]

See https://github.com/jgm/peg-markdown/commit/9ff58c2
This commit is contained in:
Michael Teichgräber 2013-01-23 22:46:38 +01:00
parent 7ce368c8ef
commit f3d02c6662
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ func (w *htmlOut) str(s string) *htmlOut {
case '"': case '"':
ws = """ ws = """
default: default:
if o { if o && r < 128 && r >= 0 {
if rand.Intn(2) == 0 { if rand.Intn(2) == 0 {
ws = fmt.Sprintf("&#%d;", r) ws = fmt.Sprintf("&#%d;", r)
} else { } else {

2
portid
View File

@ -1 +1 @@
199 207