Using html tags in lesson answers

Using html tags in lesson answers

by Simon Reynolds -
Number of replies: 2

Help please!

I have been building a web design course and created a new section on html tags. It worked fine as a web page so I thought I would convert it to a lesson with some questions.

Some of you may know where I am going with this.

The problem arises when I try to ask a question on which is the correct tag e.g. </>. Once Moodle hits this, it starts ignoring most of the rest of the code in the lesson. Questions, answers etc. all disappear smile

Any ideas?

Cheers

Simon

Average of ratings: -
In reply to Simon Reynolds

Re: Using html tags in lesson answers

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Simon,

Have you tried replacing characters with HTML entities i.e. replace < with &lt; and > with &gt;
In reply to Helen Foster

Re: Using html tags in lesson answers

by Simon Reynolds -

After looking at &lt; etc. all day and trying to get rid of them in other code, I really should have thought of this. Wood and trees spring to mind smile

Thanks for this, works like a dream. Now off to deliver it to Romsey...