Html content on the description line

Forums: 

Hi!

I would like to use HTML on the description line to feature a link on each answer popup. When wirting html the final result will not work as html.

Is this possible? I've tried many things but was not able to find the solution.

 

Attachments: 
Content types: 
BV52's picture

Hi andresb,

This is not possible. To make the authoring tool as simple as possible and to make sure that no one uses it to insert malicious code which could lead to security risk.

-BV

Understand your point

serettig's picture

I don't think it is impossible, as H5P content types use text fields that allow HTML markup in many places. However, the memory game semantics don't allow HTML markup in this case, so all HTML tags are filtered out. If you change the semantics.json file of Memory Game and also change how the content type displays the description, it should be possible.

otacke's picture

Hi all!

Let's rather replace '"change" the semantics file' with '"override" the semantics file' by using the alter_semantics hook as described at https://h5p.org/documentation/for-developers/authoring-tool-customization

Best,

Oliver