Is it possible to prevent a metarefresh from beeing executed? I have a html-code in a databasecell. I want to either prevent it from beeing forwarded or show only the pure code instead of the rendered code. How may I do this?
1 Answers
Refer this faq:
##### Q) How to show HTML tags in textarea and grid cells?
Following custom formatter will enable you to show html tags in textarea, as well as in grid.
$col["edittype"] = "textarea"; // render as textarea on edit
$col["formatter"] = "function(cellval,options,rowdata){ return jQuery.jgrid.htmlEncode(cellval); }";
$col["unformat"] = "function(cellval,options,cell){ return jQuery.jgrid.htmlDecode(cellval); }";
$cols[] = $col;
Your Answer