You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Paul Pogonyshev (JIRA)" <de...@myfaces.apache.org> on 2006/11/21 12:03:11 UTC

[jira] Commented: (MYFACES-1396) Too much escaping

    [ http://issues.apache.org/jira/browse/MYFACES-1396?page=comments#action_12451596 ] 
            
Paul Pogonyshev commented on MYFACES-1396:
------------------------------------------

I also stumbled into this bug.  Except for XML, it is also makes it very difficult to use generated strings in JavaScript, since it does not convert entities to characters automatically (you have to do it manually and it is very inconvenient to do for each string, not to mention it is improper.)

Please don't escape encodable characters by default or add an option to not escape them somewhere in the configuration file.

I attach a simple test page with Cyrillic characters generated in various ways.  All are converted to entities here (1.1.4.)


> Too much escaping
> -----------------
>
>                 Key: MYFACES-1396
>                 URL: http://issues.apache.org/jira/browse/MYFACES-1396
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>            Reporter: Tomas Fischer
>         Assigned To: Martin Marinschek
>            Priority: Blocker
>
> HTMLOutputText (which delegates to HTMLEncoder) escapes not only XML-invalid charactres (like <, >, &), but also german umlauts. This is OK if generating (X)HTML, but not OK if generating XML. However, according to the official documentation to the outputText Tag the german umlauts should not be quoted: If the "escape" attribute is not present, or it is present and its value is "true" all angle brackets should be converted to the ampersand xx semicolon syntax when rendering the value of the "value" attribute as the value of the component.
> There is an automatic XML detection, but this is broken, as only predefined MIME-types are recognized (application/xhtml+xml, application/xml, text/xml).
> This bug prevents using JSF for generating other content (e.g. SVG, MIME-type image/svg+xml).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira