Prevent metarefresh from execution, or prevent html from beeing rendered

QuestionsPrevent metarefresh from execution, or prevent html from beeing rendered
Mario asked 8 years ago

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
Abu Ghufran answered 8 years ago

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

8 + 12 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?