Hoppa till huvudinnehållet

Does anybody know how to get the encodeHtml function to work on user input to an Html expression when using the Send Email Activity.

Kommentarer

2 kommentarer

  • Ken Lyon

    Hi Shaunda,

     

    Could you share the expression that you are using? It sounds like you have ".encodeHtml(" after something else, rather than using it directly.

     

    The expression should be something like this:

    =`<div><h1>Field Notes</h1><p>${encodeHtml($getWorkflowInputs1.inputs.userInput)}</p></div>`

    Key things to note in the above:

    1. The string is surrounded by backticks, not single or double quotes. This allows us to use ${ } to put a script directly within the text.
    2. The encodeHtml() function is called directly, in other words it is not contained within an object.
    3. The html surrounding the ${ } block is just for illustration and can be changed to whatever you want.
    0
  • Nico Burgerhart

    Where can I find documentation on encodeHtml? This does not seem to be a valid function.

    0

Du måste logga in om du vill lämna en kommentar.