pirave / postmarkup

Automatically exported from code.google.com/p/postmarkup
0 stars 0 forks source link

HTML entities #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I prefer not to substitute html entities so I changed:

standard_replace = MultiReplace({'<':'&lt;', '>':'&gt;', '&':'&amp;',
'\n':'<br/>'})

with:

standard_replace = MultiReplace({'<':'&lt;', '>':'&gt;', '&(?!#)':'&amp;',
'\n':'<br/>'})

Ciao.
Marco.

Original issue reported on code.google.com by marcob...@gmail.com on 10 Jul 2008 at 4:31

GoogleCodeExporter commented 8 years ago
What does that achieve?

Original comment by willmcgugan on 10 Jul 2008 at 4:44

GoogleCodeExporter commented 8 years ago

Original comment by willmcgugan on 23 Sep 2008 at 8:32

GoogleCodeExporter commented 8 years ago
With your source:
 '' -> '&20;;

With my proposal:
 '' -> ''

Original comment by marcob...@gmail.com on 23 Sep 2008 at 10:48