Hello-
I know with Liquid you can access the data in a field of a retrieved entity to display in a web page, but what if the data in question is HTML/CSS/JS? Will Portal dump the raw code to the page or will it escape the special characters and show the literal text rather than functional HTML?
Thanks,
Solved! Go to Solution.
Hi
are you rendering your field with HTML via Liquid? if yes, the default behavior is rendering as HTML itself
so you can have the data in your CDS using HTML and simply display on the portal using the syntax {{ yourobjectname }}
if you want to display raw HTML, you can use the filter | escape: {{ yourobjectname | escape }}
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Power Apps Portals Super User
Hi
are you rendering your field with HTML via Liquid? if yes, the default behavior is rendering as HTML itself
so you can have the data in your CDS using HTML and simply display on the portal using the syntax {{ yourobjectname }}
if you want to display raw HTML, you can use the filter | escape: {{ yourobjectname | escape }}
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Power Apps Portals Super User
User | Count |
---|---|
9 | |
6 | |
5 | |
4 | |
2 |
User | Count |
---|---|
21 | |
19 | |
18 | |
10 | |
4 |