-
I'm trying to do something like this:
where logs is ["Hello world!", "This is <div style="color: red;">red!"]. I'd like the text contents to be rendered as html instead of just a string. I was able to do something similar in the Flask/Jinja python libraries using the syntax {{ log | safe }} and it seemed really convenient. |
Beta Was this translation helpful? Give feedback.
Answered by
mikke89
Mar 18, 2022
Replies: 1 comment
-
Hi. You can use the <div data-for="log : logs" data-rml="log + '<br/>'"/> Let me know how it goes :) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi.
You can use the
data-rml
view for this purpose. I think the following should work for you:Let me know how it goes :)