ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: queensgambit9 on June 09, 2020, 05:36:32 pm

Title: html tags in json.stringify
Post by: queensgambit9 on June 09, 2020, 05:36:32 pm
Trying to create clickable link inside json string... in column.render:

render: function (ui) {
        data = JSON.parse(ui.cellData)
        a = data.test
        a.forEach(function(i, j){
        data.test[j].attr ="<a href='http://www....' target='_blank'>test</a>"
            })
        }
        return JSON.stringify(data)

but it won't render correctly in browser...
Title: Re: html tags in json.stringify
Post by: queensgambit9 on June 09, 2020, 07:44:36 pm
Solved.