You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Steffen Fritzsche <fr...@scriptroom.de> on 2009/01/13 11:51:13 UTC

Using HTML Unicode Escapes by default

Hi,

is there a convenient way to force wicket to use HTML Unicode Escapes  
by default? Because the standard HTML escape sequences do not work.

As far as I see the call to the Strings.escapeMarkup method is  
hardcoded to use only the standard HTML escape sequences

Component.getModelAsString
[...]
// If we should escape the markup
if (getFlag(FLAG_ESCAPE_MODEL_STRINGS))
{
  // Escape HTML sensitive characters only. Not all none-ascii chars
  return Strings.escapeMarkup(modelString, false, false).toString();
}
return modelString;
[...]

It would be really useful to set this behaviour from somewhere  
outside, otherwise I have to deactivate the escaping on every  
component and use Strings.escapeMarkup manually what would mean a lot  
of extra work.

Do you have any suggestions?

Thanks,
Steffen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org