Recently we have upgraded Outsystems platform to new version 11.31.0 from 11.27.0.
Post upgrade we found in Datagrid html text is getting displayed instead of icon.
Any solution for this?
Hi @Mithun Rathod
Next time please indicate the OutSystems Data Grid versions - the one you had and the one you upgraded.
From what I can see you should have a version >= 2.17.0 and, as you can see in the release notes, to improve security and protect against XSS vulnerabilities, a new parameter, SanitizeInputValues has been added to the Grid block's optional configurations. The default value for SanitizeInputValues is set to True, ensuring that HTML content is automatically sanitized out of the box, prioritizing security.
So, if you set SanitizeInputValues = False it will work as expected:
Cheers,GM
can you please provide more details like screenshot and oml file.
Hi Navneet,
We have used Action column and passed html tag in TestFixed property.Please find below details. Before upgrade.
Output:
After Upgrade: Instead of Icon, html tag is displayed.
it is working fine for me I am not sure can you share the screen link ? where I can check the html or create a test screen which I can access to see the html.
Version 11.31.0
Hi Gonçalo,
Just curious, is there any best practice to put icons here in this case? As I can understand that this new feature has been developed keeping security in mind, so is there any other way to achieve this without turning off the sanitizeInputValues?
Kind regards,
Shounak
Hi @Shounak Devbhuti
Without compromising security no, so I can't suggest anything in that sense.
you got solution for this ?
Yes. Above solution worked for us.