On Nov 10, 2008, at 5:39 PM, Sergiu Dumitriu wrote:
Vincent Massol wrote:
Hi,
I've just tried your example:
{code} <!ENTITY Auml "Ä"> {code}
No, that's not the problem. He tried to enter:
{code} <!ENTITY Auml "Ä"> {code}
which was displayed as
<!ENTITY Auml "Ä">
and not as
<!ENTITY Auml "Ä">
Which means that we do escape < and >, but no &. Do we want that? Is it something all users want and need? I'll be -1 for changing this, since it will break non-UTF instances that need to print non-ISO-8859-1 symbols in a {code} block.
Sascha, you could double-escape, like in:
{code} <!ENTITY Auml "&#196;"> {code}
I know it's more hard work, but it's a working workaround.
Another solution is to use XWiki 2.0 syntax (available since 1.7M1) which supports full escaping. See http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax Thanks -Vincent
And it worked well:
http://playground.xwiki.org/xwiki/bin/view/Test/VMA
(note: this link will be reset tomorrow but just edit the page and copy the input to recreate it)
Thanks -Vincent
On Nov 10, 2008, at 5:03 PM, [email protected] wrote:
Hey everyone, While using XWiki version 1.1.2.5797 to document some software, the following problem occurred: I tried to insert snippets of a XSL file into a XWiki page using a {code} macro. As far as I know this macro treats input as plaintext, which would be exactly what I need. However, it turned out to work differently. It parsed HTML entities, so instead of displaying inputs like <!ENTITY Auml "Ä"> exactly as they are, the HTML parts are parsed to <!ENTITY Auml "Ä"> Having failed with the {code} macro, I tried {pre} and \, but none of them worked. The same problem occurred when I used XWiki 1.7 which is running on a test server in the company I work for. Does anyone of you know how to make XWiki display HTML and XML entities as plaintext? I could not find anything about this problem in the documentation, the FAQ, or in the mailing list archive. Did I simply miss something? Since I read some threads about issues with the WYSIWYG editor, let me add that I use the XWiki editor, not the WYSIWYG editor. Any help would be greatly appreciated!
Best regards, Sascha