This question is locked. New answers and comments are not allowed.
Greetings friends,
I am having difficulties in adding HTML content to a column. The contents of this column is "<p> Hello </ p> <p Test </ p>", and would like it to be rendered as HTML. I tried to put the option "Encode (true)" but did not work. Does anyone have any suggestions?
Code:
columns.Bound(p => p.RecadoInfo.DsRecado).Title("Recado").Encode(true).Width(80);
Output:
<p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p>
Expected:
hello
hello
hello
hello
hello
Thanks
I am having difficulties in adding HTML content to a column. The contents of this column is "<p> Hello </ p> <p Test </ p>", and would like it to be rendered as HTML. I tried to put the option "Encode (true)" but did not work. Does anyone have any suggestions?
Code:
columns.Bound(p => p.RecadoInfo.DsRecado).Title("Recado").Encode(true).Width(80);
Output:
<p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p>
Expected:
hello
hello
hello
hello
hello
Thanks