Only obfuscate ascii characters. [jgm/peg-markdown]
See https://github.com/jgm/peg-markdown/commit/9ff58c2
This commit is contained in:
parent
7ce368c8ef
commit
f3d02c6662
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user