You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/fullpagehtml.adoc
+27-11Lines changed: 27 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,40 +37,56 @@ tinymce.init({
37
37
38
38
[WARNING]
39
39
====
40
-
**Meta tags may be removed by XSS sanitization**
40
+
**Certain elements may be removed by XSS sanitization**
41
+
By default, {productname} sanitizes HTML content to protect against XSS attacks. Elements outside the HTML5 specification, such as `<script>`, are removed. Standard `<meta>` tags are preserved, but attributes not defined in the HTML5 spec (for example, the RDFa `property` attribute) require explicit configuration to be retained.
41
42
42
-
By default, {productname} sanitizes HTML content to protect against XSS attacks, which may remove certain meta tags from the full page HTML. If integrators experience issues with meta tags being removed, the following configuration options are available, though not advisable:
43
+
If integrators encounter issues with required elements being removed, the following configuration options are available. These options reduce security and should be used with caution:
43
44
44
-
* `xss_sanitization: false` - Disables DOMPurify.
45
-
* `+valid_elements: '*[*]'+` - Allows all elements and attributes.
45
+
* `xss_sanitization: false` — Disables DOMPurify and removes all XSS protections.
46
+
* `valid_elements: '*[*]'` — Allows all elements and attributes.
47
+
* `extended_valid_elements: 'meta[*]'` — Extends the schema to allow additional `<meta>` attributes (for example, RDFa `property`).
46
48
47
-
See xref:security.adoc#xss_sanitization-option[xss_sanitization option] and xref:content-filtering.adoc#valid_elements[valid_elements option] for more information.
49
+
Note that `extended_valid_elements` is *additive*, so all standard elements and attributes remain valid while additional ones are permitted.
48
50
49
-
**Preserving meta tags (advanced configuration)**
51
+
For more details, see xref:security.adoc#xss_sanitization-option[xss_sanitization option] and xref:content-filtering.adoc#valid_elements[valid_elements option].
52
+
====
50
53
51
-
If meta tags are being removed by XSS sanitization, the editor can be configured to preserve them using one of the following approaches, though these options are **not recommended**:
54
+
.Example: disabling DOMPurify with `xss_sanitization`
Support for the RDFa `property` attribute on `<meta>` elements is planned for inclusion in the default {productname} schema in version 8.2. If you require this attribute now, use `extended_valid_elements` as shown above.
0 commit comments