okfn / opendatahandbook

Open Data Handbook v2
http://opendatahandbook.org/
202 stars 263 forks source link

Need to replace HTML special characters to their corresponding HTML entities #199

Open jgkim opened 9 years ago

jgkim commented 9 years ago

I can find some HTML special characters, such as “, ”, ‘, and ’, in the content.

We should replace them with their corresponding HTML entities (e.g. “, ”, ‘, and ’), or for curly quotation marks, we can just use plain quotation marks and let Markdown automatically handle them.

rufuspollock commented 9 years ago

We should replace quotes to "normal" quotes and let markdown automatically handle them.

jgkim commented 9 years ago

Even if I replaced all the quotation marks into their plain forms (https://github.com/okfn/opendatahandbook/issues/200), some pages still have HTML special characters such as &, and it could be problematic to automatically replace them with their HTML entities (e.g., &).

rufuspollock commented 9 years ago

Why do you think it would be problematic?

jgkim commented 9 years ago

@rgrp Since all the HTML entities start with &, it's impossible to simply find & replace every occurrence of & to &.