array to text

Team,

I have below code :

a!localVariables(
local!data1:{"test1<br>","test2<br>"},
local!data1
)

Output is list of text strings

  • "test1<br>"(Text)
    • "test2<br>"(Text)

    I want the output to be in format "tetst1<br>test2<br>"

    Basically i am formatting a data before sending into email template but it is appearing like below , i want the semicolon to be removed.

    Test1
    ; Test2

    It should be like below

    Test1
    Test2

    ANy suggestions ?

      Discussion posts and replies are publicly visible

    Parents
    • +1
      Certified Lead Developer

      a!localVariables(
        local!data1:{"test1<br>", "test2<br>"},
        joinArray(local!data1, char(10))
      )

      will result in:

      test1<br>
      test2<br>

      To get rid of the HTML break tags you will need to do a subsequent line-by-line command such as stripHtml(), though I don't presume to know exactly what you're hoping to have happen with HTML formatting in your input text.  FYI appian won't format HTML as rich text without some pretty significant user-defined parsing, etc, which gets pretty complicated to set up.

    Reply
    • +1
      Certified Lead Developer

      a!localVariables(
        local!data1:{"test1<br>", "test2<br>"},
        joinArray(local!data1, char(10))
      )

      will result in:

      test1<br>
      test2<br>

      To get rid of the HTML break tags you will need to do a subsequent line-by-line command such as stripHtml(), though I don't presume to know exactly what you're hoping to have happen with HTML formatting in your input text.  FYI appian won't format HTML as rich text without some pretty significant user-defined parsing, etc, which gets pretty complicated to set up.

    Children