HTML tags in text component end up in HTML page

When I type HTML tags in a text component, they are not escaped but end up in the generated HTML literally.

While it can be nice to have a way to add literal code to a page, I assume this is not as intended. I expect the tags to be escaped so I can discuss code snippets in a web page.

Side observation: in the generated HTML I see a weird CSS selector starting with [ & amp ; _ a ] :

elementsapp://downloadDocument/a2ogbu1yUd0o
RapidWeaver Elements b19 (23021)

Hi, if you want to actually display the code instead of rendering it then you will need to manually provide the html encoded character strings like this:

<pre><code>&lt;b&gt;Bold&lt;/b&gt;</code></pre>

Which will display as:
<b>Bold</b>

After reading the RW Classic documentation I realize the support for inline HTML code is a feature. Because of Element’s clean UI design I had not expected it to work this way.

But I understand it’s a useful thing to have.

Technically, this shouldn’t be working as-is—the HTML should be escaped. We’ll make sure to address this in an upcoming beta. Thanks for pointing it out!

By the way, if you want to render HTML directly on the page, try using a Custom Component. It’s the best approach for safely adding custom HTML.

Appreciate your patience, and thanks for helping us make Elements even better! :raised_hands:

1 Like