<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Displaying  in jqgrid cells</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/displaying-in-jqgrid-cells</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/displaying-in-jqgrid-cells/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Displaying  in jqgrid cells</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/displaying-in-jqgrid-cells#p28212</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/displaying-in-jqgrid-cells#p28212</guid>
        	        	<description><![CDATA[<p>You need just use <strong>autoencode: true</strong> option of jqGrid. Then jqGrid will interpret all cell data as text and not as HTML fragments. The exception will stay custom formatters. The results of working custom formatters are interpreted always as HTML fragmants. If needed you can use <strong>$.jgrid.htmlEncode</strong> function inside of your custom formatter.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sat, 02 Feb 2013 10:16:11 +0200</pubDate>
        </item>
        <item>
        	<title>johan on Displaying  in jqgrid cells</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/displaying-in-jqgrid-cells#p28211</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/displaying-in-jqgrid-cells#p28211</guid>
        	        	<description><![CDATA[<p>Hello, I went into this assuming that jqGrid already accommidated for displaying values like &#60;script&#62;alert(&#39;hi-lol&#39;);&#60;/script&#62; in cells but it seems to not do so. So I added a formatter because I want to erradicate this for any grid cell ever&#8230; which I am unsure how to do this especially when other formatters are involved&#8230;</p>
</p>
<p>In any case here is my simple formatter that does not work.</p>
</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit1006' value='Select Code' data-codeid='sfcode1006' /></p><div class='sfcode' id='sfcode1006'>function&#160;jsonFmtr(cellvalue,&#160;options,&#160;rowdata)&#160;{ &#160;&#160;&#160;&#160;return&#160;&#34;&#60;praaae&#62;&#60;codeaaa&#62;&#34;&#160;+&#160;cellvalue&#160;+&#160;&#34;&#60;/codeaaa&#62;&#60;/praaae&#62;&#34;; }</div></pre>
<p> It does what I expect, but the javascript still runs&#8230; not sure what to say here really other than I need some help!</p>
</p>
<p>Sorry it seems I cannot get pre and code tags to display, the function is wrapping the value in pre and code tags...</p></p>
]]></description>
        	        	<pubDate>Sat, 02 Feb 2013 00:10:07 +0200</pubDate>
        </item>
</channel>
</rss>