cgkineo / adapt-xAPI

An extension to utilise The Experience API (xAPI) to collect data on human performance, stored within a suitable Learning Record Store (LRS).
GNU General Public License v3.0
2 stars 1 forks source link

html tags in statement #6

Closed danielghost closed 4 years ago

danielghost commented 6 years ago

If html tags are used in the JSON these will appear in the statement. Is this acceptable?

Have switched object.name to pull from title rather than displayTitle but body text for question statements will potentially still include tags.

danielghost commented 4 years ago

https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Data.md?utm_campaign=Ask%20The%20Expert&utm_source=GitHub%20%28Anchor%29&utm_medium=Internal%20Link#description-23:

The content of strings within a language map is plain text. It is expected that any formatting code such as HTML tags or markdown will not be rendered, but will be displayed as code when this string is displayed to an end user. An important exception to this is if language map Object is used in an extension and the owner of that extension IRI explicitly states that a particular form of code will be rendered.