Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC:

Using HTML in content 2 years 4 months ago #8212

  • 3881
  • 3881's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
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 < and >.
After editing another element and returning to my example code <h1> is replace by <h1> and shown as a header. <body> 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.

Using HTML in content 2 years 4 months ago #8213

  • 3881
  • 3881's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
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.

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

Last edit: by 3881.

Using HTML in content 2 years 4 months ago #8214

  • tom
  • tom's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 1283
  • Thank you received: 324
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.

  • Page:
  • 1
Moderators: ronmjultenJohnSmith
Time to create page: 0.045 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search