Skip to main content
Nintex Community Menu Bar
Question

Javascript Snippet Field Renderer Renders Quotes Incorrectly

  • July 10, 2024
  • 3 replies
  • 5 views

Forum|alt.badge.img+4

When using a snippet to render a field with Skuid’s Javascript UI Field Renderer e.x. 

skuid.ui.fieldRenderers.TEXT.edit( arguments[0], arguments[1] );

it displays quotes as " (its HTML representation) and not as " (in the actual HTML its ")

3 replies

Forum|alt.badge.img+4

Any updates on this? We use the Javascript renderer quite a bit and any field with an apostrophe or quote is rendered incorrectly.

Thanks in advance!


Forum|alt.badge.img+9

Try using the

skuid.utils.decodeHTML()

function.

From this link : http://help.skuid.com/m/11720/l/129517-skuid-utils


Forum|alt.badge.img+3

The value passed in to the custom renderer is already HTML encoded, the console will throw you off as it decodes the HTML-encoded characters. As Moshe suggested above decode the HTML before calling the render function on it.