Field renderer causing Apostrophe to turn into "'"

Hi,

Prob a very basic question, but I use the snippet below to highlight text field in a table and for some reason it causes the Apostrophe to turn into "'"

From what i found on another post, I have to use the unescaped value, but not really sure how to do that :frowning:

In case anyone can help, Here’s snippet:

var field = arguments[0],

    value = arguments[1];



skuid.ui.fieldRenderers[field.metadata.displaytype]field.mode;


field.element.css({‘background-color’:‘red’,‘min-height’:‘30px’});


Thank you

You’ll need to use the skuid utils decodeHTML method to convert the encoded HTML back to readable text. The text is HTML encoded when it gets passed to skuid.

value = skuid.utils.decodeHTML(arguments[1]); 

Thank you very much, that worked perfectly!