free-jqgrid / jqGrid

jQuery grid plugin
https://github.com/free-jqgrid/jqGrid
Other
478 stars 196 forks source link

Issue with row ID containing single quotes #475

Open antoineluong opened 5 years ago

antoineluong commented 5 years ago

Hello,

When defining grid data with single quotes in the 'id' field, the row ID gets truncated before the single quote, leading to unwanted behavior. See https://jsfiddle.net/w9yn486r/ where the row ID is truncated to "foo" instead of "foo'bar".

The behavior changed between versions 4.12.0 and 4.13.0 with commit e697e29a0febda54e204707c43883f72d0f3d407. Is this normal? Should the ID be only numeric, or are arbitrary strings supported?

Thank you.