Hi Jeremie,

It seems this is a regression I introduced in 3.2 when I refactored
the XWikiDocument class to use the new display module. The problem is
that the title is parsed as HTML which shouldn't be the case because
the title is plain text + Velocity script.

The title was parsed as HTML before my changes, but only if the output
syntax wasn't HTML (rare, since most of the time wiki pages are
rendered as HTML to be displayed in a browser).

Devs, do you see any issues with parsing the (specified) document
title as plain text (after the Velocity script has been evaluated)?


On Mon, Nov 14, 2011 at 3:58 PM, jerem <jeremie.bousq...@gmail.com> wrote:
> Hi,
> - There seem to be some bad displays when a page title contains '<' or '>'.
> Display is correct in browser title bar, it is also correct in main content
> area, in hierarchy, but not in page title. For a page with title "TestTest >
> test", generated html looks like this :
> <div id="hierarchy">
> TestTest &gt; test
> </div>
> <div id="document-title">
> TestTest* &amp;*gt; test
> </div>
> The bad trick is that the "&" of "&gt;" gets replaced by "&amp;" ...
> - as a side question, is there a way to easily do the equivalent of velocity
> "$escapetool.html($text)", but in {{groovy}} ? I use mainly groovy in my
> pages, and would like to avoid passing parameters between groovy and
> velocity just for this one use-case ...
> Thanks,
> Jeremie
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Characters-or-bad-display-in-page-title-tp6992580p6992580.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
users mailing list

Reply via email to