Andreas Hartmann escribió:
> Unfortunately it doesn't work for me. The XHTML source contains the
> NCR for the ' character which also causes a JavaScript error.
>
> To make it work, it would have to look like this:
>
>     private static final char ENCODINGS[][][] = {
>         { { 34 } , "\"".toCharArray() },
>         { { 39 } , "'".toCharArray() },
>
> But this contradicts the very purpose of the XHTMLEncoder, doesn't it?
You are right, it contradicts the mere purpose of the encoding. However
it looks as a valid pragmatic solution.

On a second review it looks there is a better way to handle this issue.
Please just checkout how the HTMLEncoder avoids encoding the of  '
(') and voids to pass the encoding control to super class XHTMLEncoder.

We should move this code directly to XHTMLEncoder and add in the similar
way an exception for the " (")

WDYT?

Best Regards,

Antonio Gallardo.

Reply via email to