Skip to content

Commit 4e68279

Browse files
authored
docs(experiments): add HTML content restrictions callout for web experiments
Reflects PR #47791 which changed from silent sanitization to validation errors for disallowed HTML tags and patterns in web experiment transforms.
1 parent b0ade0e commit 4e68279

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contents/docs/experiments/no-code-web-experiments.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ Once on your site with the toolbar active:
5858
4. Select the variant of the experiment you want to modify. In our case, we select the **test** variant.
5959
5. Click **Add element** and select the element you want to modify. For example, you can select the main signup button on your page.
6060
6. Use the toolbar to modify the element's text, CSS, or HTML. We'll change the button's text to say "Sign up for free". Importantly, the **Text** field modifies the text of the element. The **CSS** field lets you change the styling of the element. The **HTML** field will override the entire element.
61+
62+
<CalloutBox icon="IconInfo" title="HTML content restrictions" type="fyi">
63+
64+
For security reasons, certain HTML tags and patterns are not allowed in the **Text** and **HTML** fields. Using them will result in a validation error. Restricted content includes `<script>`, `<iframe>`, `<object>`, and `<embed>` tags, as well as `javascript:` protocols and `data:text/html` content.
65+
66+
</CalloutBox>
67+
6168
7. If you'd like to change multiple parts of the page for this version of the experiment, click **Add element** to modify a second, third, or fourth element.
6269
8. Once done modifying elements for your variants, click **Save experiment**.
6370

0 commit comments

Comments
 (0)