Skip to content

Commit 868d5ad

Browse files
authored
[5.x] Add @default support to Antlers content allowlists (#14440)
1 parent e9edd39 commit 868d5ad

3 files changed

Lines changed: 335 additions & 176 deletions

File tree

config/antlers.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,25 @@
5757

5858
],
5959

60+
/*
61+
|--------------------------------------------------------------------------
62+
| User content allowlists
63+
|--------------------------------------------------------------------------
64+
|
65+
| These control which tags and modifiers will be permitted in user-supplied
66+
| Antlers (e.g. fields with `antlers: true`). Include the literal string
67+
| `@default` in the array to merge Statamic's defaults with your own.
68+
|
69+
*/
70+
71+
// 'allowedContentTags' => [
72+
// '@default',
73+
// 'foo:*',
74+
// ],
75+
76+
// 'allowedContentModifiers' => [
77+
// '@default',
78+
// 'foo'
79+
// ],
80+
6081
];

0 commit comments

Comments
 (0)