Skip to content

HTML character codes in select #461

@stephenlawuk

Description

@stephenlawuk

I have some HTML character codes in my select options data and noticed they do not render as their appropriate characters so e.g.   comes out as text rather than a space.

In the select creation of the jsgrid.js I had to change the following

var $option = $("<option>").attr("value", value).text(text).appendTo($result);

to use .html instead of .text to get it to work.

var $option = $("<option>").attr("value", value).html(text).appendTo($result);

Hoping in a future release this can get this changed so I don't have to edit the file when I update.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions