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.
2 parents a0c9316 + a3dbdf8 commit 3fc498dCopy full SHA for 3fc498d
static/js/DynamicForm.js
@@ -256,8 +256,13 @@ class DynamicForm {
256
// Create element
257
var instruction_label = document.createElement('h3');
258
259
- // Assign properties
260
- instruction_label.innerHTML = msg;
+ if (window.DOMParser) {
+ var parser = new DOMParser();
261
+ var doc = parser.parseFromString(msg, 'text/html');
262
+ instruction_label.innerHTML = doc.body.textContent;
263
+ } else{
264
+ instruction_label.innerHTML = msg;
265
+ }
266
instruction_label.className = 'recipient_label';
267
268
// Append to parent
0 commit comments