ignore html tags in jquery slickgrid -
i have slickgrid similar 1 this example.
the data comes database, , in 1 column can have values containing html tags, "font size=... color=.../>", br/> , others (i've written without first "<", here text automatically formated also).
at runtime, rows looks unsightly, formatted respecting html tags, if there 3 "br"-s, height of entire row in slickgrid increased, font red, etc. there property slickgrid ignore html tags , dsplaying text is?
thanks.
you can use custom formatter ignore html tags follows,
function customformatter(row, cell, value, columndef, datacontext) { return $(value).text(); }
for more information try following jquery code,
var htmldata= '<div id="xyz">html data</div>'; alert($(htmldata).text());
Comments
Post a Comment