h5p_contents: parameters vs. filtered

I've noticed that h5p stores a lot of data in json format in the database. Could you please explain the difference between the data in the parameters field and the filtered field in the h5p_contents table? Thanks!

icc's picture

The parameters field is used instead of reading content.json from disk. It's the raw data generated by the editor or when uploading an H5P. The filtered field contains the same data as parameters only that it has been filtered and deemed safe to use for the content types on your site.

Let me know if you have any follow up questions.

ahmad.curriki's picture

How can I access unfilterd json data?

I can access filtered data using:

this.option.field_name

But I want to access unfiltered data. The reason is that filtered that removes the in-line style tags from Ckeditor4 field data.