Importing XML with HTML in definition

Importing XML with HTML in definition

by Lillian Hawasli -
Number of replies: 1

Hi, 

I was wondering if anyone here has ever had an issue with importing glossary entries using an xml file that included html in the definition? 

The original problem i'm having is exporting glossary entries from one course that include html for a kaltura audio player in  <DEFINITION>. What ended up getting imported was empty div elements stripped of all content and attributes. I thought at first that it didn't like embedding code for audio players, but even when I import something as simple as:

<DEFINITION> <![CDATA[ <span  class="red" id="blue" style="font-size: 1rem;" >Hello World</span> ]]></DEFINITION>

what ends up getting imported is

<span class="red">Hello World</span>

with the id and styling being stripped upon import.


Has anyone run into this problem, or is this a known issue or possible setting that I'm missing?


Thanks



Average of ratings: -
In reply to Lillian Hawasli

Re: Importing XML with HTML in definition

by Daniel Thies -
Picture of Core developers Picture of Plugin developers Picture of Testers

Do you have <FORMAT>1</FORMAT> defined for the entry?