Quiz title. On student taking exam view, on quiz title HTML tags are removed and not displayed as text.
On student taking exam view, on quiz title HTML tags are removed and not displayed as text.
When quiz title is for example, [What's the difference between <div>Value</div> and <span>Value</span>]
On student taking exam view, tags are removed.
Save in DB title has html entities. Decode entities when re-editing the title
As discussed on Slack: The general logic of Chamilo 1.11 (it still feels valid for C2) was that the text content would be saved in the database without any conversion except for escaping SQL. This means that, technically, the database can hold JavaScript that could be used for an XSS attack, for example, and so it has to be filtered when displaying it. The reason to do it that way (which is less efficient because typically you write once, then read many times the same content) is because you do not know in advance the context in which it will be printed. For example, if you filter the data before, "é" could be saved as "é" in the database, but then instead of showing it on a page, you would print it in PDF or export it inside an Excel file, where the "é" will be rendered "as is", without conversion to "é".
There is a configuration setting in Chamilo (1 and 2) called save_titles_as_html which in principle does what you are saying, except it doesn't store a converted version in the database. Instead, it does not filter the output in the same way as it normally would.
I haven't tested this setting in Chamilo 2, but I suggest you search for save_titles_as_html in the code before going any further
This works in 2.0 as well.
Granted, it is still filtered in the tests list and shows as plain text, but in the test start screen, it shows in color if I've set it in color. The option save_titles_as_html is called "Save titles as HTML" in English and is located in the "Editor" section of the platform settings.