Report any technical problems you discover and discuss solutions.

Using HTML in content

Plus d'informations
il y a 4 ans 4 semaines #8212 par 3881
Using HTML in content a été créé par 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?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 4 ans 4 semaines - il y a 4 ans 4 semaines #8213 par 3881
Réponse de 3881 sur le sujet 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.
Dernière édition: il y a 4 ans 4 semaines par 3881.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 4 ans 4 semaines #8214 par tom
Réponse de tom sur le sujet 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.
Les utilisateur(s) suivant ont remercié: takeshi, 3881

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ronmjultenJohnSmith
Temps de génération de la page : 0.890 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo