-
My goal: Have a preview of HTML code inside Text component.
-
Issue: Did not know how to do it.
-
Steps I've taken to troubleshoot: Use util.OpenUrls, window.open but it does not works.
Hi,
you have a dedicated component called "HTML" to display your html code. There was also an old "text" component that had an option to render as html but it is deprecated.
Hello @yeftanma, it's been a while. Welcome back to the Community!
Thanks for chiming in, @_Hubert_Golebiowski, and welcome to the Community!
If your goal is to preview (render) HTML code inside your app, the best option is to use the HTML component instead of the Text component. The HTML component is specifically designed to render raw HTML, while the Text component is intended for plain text or Markdown and only supports a limited set of HTML tags for security reasons.
If your goal is to display the HTML code as plain text (not rendered), you can use the Text component with Markdown code blocks (triple backticks). This will only show the code itself, not a live preview.
Let me know if thatβs helpful!
A post was split to a new topic: CSS is not loaded in HTML component