We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deff754 commit 6364550Copy full SHA for 6364550
scripts/h5peditor-editor.js
@@ -295,6 +295,11 @@ ns.Editor.prototype.getContent = function (submit) {
295
return;
296
}
297
298
+ // Convert title to preserve html entities
299
+ const tmp = document.createElement('div');
300
+ tmp.innerHTML = content.title;
301
+ content.title = tmp.textContent; // WARNING: This is text, do NOT insert as HTML.
302
+
303
library = new iframeEditor.ContentType(content.library);
304
const upgradeLibrary = iframeEditor.ContentType.getPossibleUpgrade(library, this.selector.libraries.libraries !== undefined ? this.selector.libraries.libraries : this.selector.libraries);
305
if (upgradeLibrary) {
0 commit comments