App ignoring linebreaks?

답변함

2 댓글

  • CJ Johnson

    Hi Chris Sos Thanks! 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 <br>, but none of them made a difference: 
    var contents = "apple <br>" + "coconut </br>" + "<br> banana </br>" ;



    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
  • 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 (</br>) instead of JavaScript's \n character if displaying them within a paragraph block.

    Hope this helps!

    Chris

    0

댓글을 남기려면 로그인하세요.

Zendesk 제공