Report any technical problems you discover and discuss solutions.

Using HTML in content

More
4 years 4 weeks ago #8212 by 3881
Using HTML in content was created by 3881
I am trying to create content for a HTML course and want to use HTML code examples in a text element. The editor keeps replacing or deleting the tags I want to display.
I have tried placing the example code between pre-tags after displaying the page source to edit it. In the html code I have replaced < and > with &lt; and &gt;.
After editing another element and returning to my example code &lt;h1&gt; is replace by <h1> and shown as a header. &lt;body&gt; is removed.
I can't find a way to display HTML code in the content.

Is there a way to use HTML code in the content of my courses?

Please Log in or Create an account to join the conversation.

More
4 years 4 weeks ago - 4 years 4 weeks ago #8213 by 3881
Replied by 3881 on topic Using HTML in content
Ok, the forum is doing something simular.

The first <h1> should be

& lt ; h1 & gt ;

without spaces.

And <body> should be

& lt ; body & gt ;

without spaces.
Last edit: 4 years 4 weeks ago by 3881.

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago #8214 by tom
Replied by tom on topic Using HTML in content
If you are able to upgrade your Xerte install to version 3.11 that we released on July 4, there is a 'codesnippet' button in teh toolbar of the editor that enable just this and prevents changing the tags and/or interpreting the tags as HTML.
The following user(s) said Thank You: takeshi, 3881

Please Log in or Create an account to join the conversation.

Moderators: ronmjultenJohnSmith
Time to create page: 0.122 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo