How to pass HTML line breaks with | The place for Zendesk users to come together and share
Skip to main content
Question

How to pass HTML line breaks with

  • August 16, 2024
  • 0 replies
  • 0 views

Hey all,

 

We have an AI customer support app in the Zendesk marketplace.

 

One of the features of this app is to insert an answer drafted by AI (using knowledge from your help docs) into the editor.

 

The code we're using is:

client.invoke("ticket.editor.insert", answer);

My understanding is that HTML can be passed into this, which is fine and working for links, bold, italics, etc.

But, I can't find any way to pass in a line break e.g. <br>

Has anyone else come across this or managed to solve this?