File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -349,9 +349,12 @@ attributes from the `W3C Standard Proposal`_ are allowed.
349
349
</framework : allow-element >
350
350
351
351
<!-- allow the <h1> element with all safe attributes -->
352
- <framework : allow-element name =" img " >
352
+ <framework : allow-element name =" h1 " >
353
353
<framework : attribute >*</framework : attribute >
354
354
</framework : allow-element >
355
+
356
+ <!-- allow the <div> element with no attributes -->
357
+ <framework : allow-element name =" div" />
355
358
</framework : sanitizer >
356
359
</framework : html-sanitizer >
357
360
</framework : config >
@@ -373,6 +376,9 @@ attributes from the `W3C Standard Proposal`_ are allowed.
373
376
374
377
// allow the <h1 > element with all safe attributes
375
378
->allowElement('h1', '*')
379
+
380
+ // allow the <div > element with no attributes
381
+ ->allowElement('div', [])
376
382
;
377
383
};
378
384
@@ -391,6 +397,9 @@ attributes from the `W3C Standard Proposal`_ are allowed.
391
397
392
398
// allow the <h1> element with all safe attributes
393
399
->allowElement('h1')
400
+
401
+ // allow the <div> element with no attributes
402
+ ->allowElement('div', [])
394
403
);
395
404
396
405
Block and Drop Elements
You can’t perform that action at this time.
0 commit comments