diff --git a/docs/test/actions.md b/docs/test/actions.md index 4a6c3f48e..c3c6f8367 100644 --- a/docs/test/actions.md +++ b/docs/test/actions.md @@ -179,6 +179,18 @@ The following test actions handle data entities using [metadata](../metadata.md) Learn more in [Handling a REST API response](../metadata.md#rest-response). +## Actions specifying HTML values + +To use HTML in actions you must encode the HTML string. We recommend using [CyberChef](https://gchq.github.io/CyberChef/#recipe=To_HTML_Entity(false,'Numeric%20entities')). Using CyberChef or a similar tool is straightforward: enter in your HTML string, copy the encoded result, and paste that value into your MFTF test. + +For example, we want to ensure that this value is presented as a string and not rendered as a H1 tag: `