all repos — grayfriday @ de40da7ad692f7fb0c81bbc68ad49d27217c49f7

blackfriday fork with a few changes

escape entities when using smartypants
Russ Ross russ@russross.com
Sat, 28 May 2011 22:39:22 -0600
commit

de40da7ad692f7fb0c81bbc68ad49d27217c49f7

parent

3ee2b137f8d5ffbd8675296a3001be5ba830fb58

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M smartypants.gosmartypants.go

@@ -332,7 +332,7 @@ mark := 0

for i := 0; i < len(text); i++ { if action := options.smartypants[text[i]]; action != nil { if i > mark { - ob.Write(text[mark:i]) + attr_escape(ob, text[mark:i]) } previous_char := byte(0)

@@ -345,6 +345,6 @@ }

} if mark < len(text) { - ob.Write(text[mark:]) + attr_escape(ob, text[mark:]) } }