Recently came across an Issue 10 filed some time ago, and turns out this is due to the quote-marks: yes given in the defaulttidy1.cfg config file...
See the current API docs quote-marks, which specifically mentions the conversion of apostrophe character to ', but the reasoning is probably not very valid in modern browsers...
This is part of a rather complicated config, built into the source -
indent: auto
indent-spaces: 2
wrap: 132
markup: yes
output-xml: yes
input-xml: no
numeric-entities: yes
quote-marks: yes
quote-nbsp: yes
quote-ampersand: no
break-before-br: no
uppercase-tags: no
uppercase-attributes: no
new-inline-tags: cfif, cfelse, math, mroot,
mrow, mi, mn, mo, msqrt, mfrac, msubsup, munderover,
munder, mover, mmultiscripts, msup, msub, mtext,
mprescripts, mtable, mtr, mtd, mth
new-blocklevel-tags: cfoutput, cfquery
new-empty-tags: cfelse
Intend to reduce this to a much simpler config, and under consideration is just -
indent: yes
wrap: 132
clean: yes
Will test, and give this a little more thought... feedback welcome...
Recently came across an Issue 10 filed some time ago, and turns out this is due to the
quote-marks: yes
given in the defaulttidy1.cfg
config file...See the current API docs quote-marks, which specifically mentions the conversion of
apostrophe
character to'
, but the reasoning is probably not very valid in modern browsers...This is part of a rather complicated config, built into the source -
Intend to reduce this to a much simpler config, and under consideration is just -
Will test, and give this a little more thought... feedback welcome...