2009-12-16 4 views

Répondre

3

figured it out in the meantime, setting the new escapeHTMLInData boolean parameter to false (defaults to true) fixes this...

+0

Je viens de le trouver en regardant un autre problème, vous devriez éviter cela si vous le pouvez et utilisez à la place une cellule 'formatter' pour annuler l'effacement du code. Cela vous aidera à vous assurer que vous n'êtes pas vulnérable aux attaques XSS dans des champs non intentionnels. – Kitson

1

Are you creating the link dynamically using a formatter or are you passing the html formatted from the server? You have to be careful of XSS attacks if you are passing html data into the Grid. The recommended way to create a link is to use a formatter, there is an example and an explanation of the setting on http://docs.dojocampus.org/dojox/grid/DataGrid

+0

c'est une grille en lecture seule, lien html formaté sur le serveur ... – dna