Hi,
I would love to know please what the "escape content" property of an expression is used for and what happens exactly when you set it to "yes" and what happens when you set it to "No"?
Thanks in advance.
Best regards,
Azhar
Hi,You can use it to include a javascript code on screen. When set to No, it is understood as a screen script or HTML. And when you select Yes, it is presented to the user who is viewing the screen, as a text.
Here is an example of using Escape Content NO: https://www.outsystems.com/forums/discussion/67941/accordion-how-to-avoid-expand-collapse-on-header-when-user-click-check-box/
Best Regards.
Thank you!
Hello,
In the Traditional Web, we have an Escape property which we can use to, execute things directly using an expression like.If I have HTML code and I want to show that HTML code here, In that case, I will set it to No,Same case with JavaScript, I can write the JS code inside the expression and set the escape property. Simple thing when you want to render the expression as HTML instead of text. Set the Escape property of your expression to NO,or you can leave it as 'Yes' if you want to display the expression as text. Hope this helpsThanksTousif Khan
Hi Azhar,
If you escape the content of an expression, then it is going to be injected as is in the HTML code.
It was often used to, for instance, add a JavaScript snippet inside the <script> tags, so that script would be added to your page.
Kind regards,
João