Fix issue caused by row IDs having quotes in them

I hit a problem with row IDs containing quote chars - gridx would fail to render. Please see the attached changes, the problem is caused by not escaping quote chars when building row html.