应用程序忽略美化下?

Answered

2 Comments

  • Chris Sos
    Zendesk Product Manager

    Hi CJ,

    Thanks for the question. So because apps are all effectively HTML, you would need to use HTML's line breaks (
    ) instead of JavaScript's \n character if displaying them within a paragraph block.

    Hope this helps!

    Chris

    0
  • CJ Johnson

    HiChris SosThanks! I think you've got me on the right path. I tried that, but then it renders it as part of the text. I've tried a few variations and ways of appending the
    , but none of them made a difference:
    var孔蒂nts = "apple
    " + "coconut
    " + "
    banana
    " ;



    That being said, I think I probably need to transform the data first in some way, or add the breaks at a different point in the process, so that they aren't part of the actual string. I'll update this thread if/when I crack this. :D

    1

Pleasesign into leave a comment.

Powered by Zendesk