raviene / flexigrid

Automatically exported from code.google.com/p/flexigrid
0 stars 0 forks source link

Row ID problem with HTML in first cell #71

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Insert HTML into data of first column (<strong>content</strong>)
2. Check out the table row id attribute
3. Attribute id will be "row<strong>content</strong>"

What is the expected output? What do you see instead?
I'd like to see html tags stripped off before using the content as row id 
(please note hat HTML Tags could also contain quotes which makes the problem an 
even harder)

What version of the product are you using? On what operating system?
Version unknown. Appears in all browsers.

Please provide any additional information below.
Fixed that in flexigrid.min.js by changing corresponding code to:

 tr.id='row'+row.id.replace(/<[^>]*>/g,'')

Original issue reported on code.google.com by na...@wfelix.de on 31 Aug 2011 at 2:30