Value containing is "encoded" at display, how to show raw. JsFiddle link included!

Value containing is "encoded" at display, how to show raw. JsFiddle link included!

zyozyo Posts: 3Questions: 1Answers: 0
edited February 2020 in Free community support

Hi,
I've search and the forum quite a bit and could not find out how to display a url contains & characters, they seems to be encoded all the time but need help to display it as they are.

I've tried with entityDecode and escape() but no luck.

Here is a minimal example if someone know the solution.

https://jsfiddle.net/zdn8tmvx/

The url to display inside the cell is:

http://example.com/?amount=1&currency=USD

This question has an accepted answers - jump to answer

Answers

  • zyozyo Posts: 3Questions: 1Answers: 0

    I've also tried with encodeURI, same result... I get this weird character : "ยค"

    https://jsfiddle.net/thdnwr0z/

  • colincolin Posts: 15,112Questions: 1Answers: 2,583
    Answer โœ“

    You can replace the '&' with '&amp' in the render function, see here.

    Colin

  • zyozyo Posts: 3Questions: 1Answers: 0

    Thanks Colin, this answer my question, Also thanks for the fully working sample code!

This discussion has been closed.