>convenient way to force wicket to use HTML Unicode Escapes
Why?



>Because the standard HTML escape sequences do not work
Could you be more specific? What doesn't work with HTML escape sequences?


Sven



----- Ursprüngliche Nachricht -----
Von: Steffen Fritzsche
Gesendet: 13.01.09 11:51 Uhr
An: [email protected]
Betreff: 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: [email protected]

For additional commands, e-mail: [email protected]





Reply via email to