Why doesn't data with <> in it export to csv?

Why doesn't data with <> in it export to csv?

DragonKingDragonKing Posts: 2Questions: 1Answers: 0

I have some data which contains '<>' characters in it and when i use the export to csv functionality in javascript , the data inbetween the angular brackets(<>) do not get exported. Can anyone please help me with this.

Example :

Data : a<=b>=c
Data that gets exported : a=c

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,144Questions: 1Answers: 2,586
    Answer ✓

    Hi @dragonking ,

    It's because it believes that's a HTML tag. You can disable that by setting stripHtml: false - see here. I did try to reproduce the condition, but for me the string remained intact - if you're seeing problems still, please could you modify my test case to demonstrate the problem.

    Cheers,

    Colin

  • DragonKingDragonKing Posts: 2Questions: 1Answers: 0

    Hi @colin ,

    Your solution worked perfectly. You're a lifesaver.

    Thanks,
    DragonKing

This discussion has been closed.