<?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: Automatic escape for cells content</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content</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/feature-request/automatic-escape-for-cells-content/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>melpomene on Automatic escape for cells content</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p26812</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p26812</guid>
        	        	<description><![CDATA[<p>Has the issue with XXS been solved somehow yet?</p>
<p>I noticed that it is possible to escape the data before it is sent to the server, but it is stil possible to insert javascripts on the clientside.</p>
<p>Is there a nice way of escaping the output before it is rendered? <a href="http://www.trirand.com/blog/jqgrid/jqgrid.html#" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/jq" rel="nofollow">http://www.trirand.com/blog/jq</a>.....grid.html#</a> Try adding &#60;script&#62;alert("XXS");&#60;/script&#62; in the input box.</p>
]]></description>
        	        	<pubDate>Mon, 18 Jun 2012 16:45:17 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Automatic escape for cells content</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p9143</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p9143</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You must use the 3.5 version. I recommend to use the last one from GitHub.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 31 Aug 2009 10:56:39 +0300</pubDate>
        </item>
        <item>
        	<title>joseisme on Automatic escape for cells content</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p8946</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p8946</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I also have this XSS problem.&#160; I would like to have jqgrid html-encode/escape bound data so that it cannot execute when it is displayed in jqgrid.&#160;</p>
<p>I am sorry I dont understand your reply Tony: is the option to encode data from the server available in version 3.4.4?&#160; or 3.5?&#160; What version must I use to have this feature?</p>
<p>Thanks,</p>
<p>-Jose</p>
]]></description>
        	        	<pubDate>Mon, 24 Aug 2009 14:12:09 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Automatic escape for cells content</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p8496</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p8496</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks - added option to encode the server data. Also if you set autoencode to true the data from server will be encoded.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 13 Aug 2009 01:07:43 +0300</pubDate>
        </item>
        <item>
        	<title>fab2008 on Automatic escape for cells content</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p8438</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p8438</guid>
        	        	<description><![CDATA[<p>I read about that options, but it is for posting data to the server. What I mean in my previous post is the ability to include unescaped content in a cell. For example, suppose that your server side script returns a string like &#60;script&#62;alert(&#39;hello world&#39;)&#60;/script&#62;, when your jqgrid is rendered the script is executed.</p>
<p>At this time, the only way to prevent such similar xss is to escape datas server side, or using a custom formatter, but this would mean that you can not use any other formatter for that cell.</p>
<p>Bye.</p>
<p>P.S. I&#39;m trying to extend standard formatters by writing some other functions. I&#39;d like to make something like extending that object, in this way I simply have to include my file and use my formatter in the same way of the bultin ones. One problem, I&#39;m not very skilled with javascript, can somone help me with a link to some doc?</p>
]]></description>
        	        	<pubDate>Mon, 10 Aug 2009 20:58:16 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Automatic escape for cells content</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p8404</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p8404</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can use the autoencode option</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....ki:options</a></p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 10 Aug 2009 05:21:57 +0300</pubDate>
        </item>
        <item>
        	<title>fab2008 on Automatic escape for cells content</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p8383</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/automatic-escape-for-cells-content#p8383</guid>
        	        	<description><![CDATA[<p>I love your plugin, I found it only two days ago and without any knowledge of it or jQuery I built a beautiful grid with a little effort.&#160;Before it I tried a lot of grid, for example YUI datatable, Dojogrid and others, but yours is the best, either the product itself and the documentation accurate and exhaustive.</p>
<p>IMHO the only feature that&#39;s missing (or maybe that I was not able to find) is automatic escape of cells content. It will be nice if we can have an option in colModel (such as escape) that prevent characters like &#60; and &#62; to be rendererd as html. Ideal thing is to have a jQuery(&#39;#idcell&#39;).text(content) call in an automated way.</p>
<p>I ask this because I use Zend Framework on server side, so in my db tables user content is stored as is, and then when used in webpages is escaped by Zend_View_Helper_Escape that does the hard job. In this way my model returns data as arrays with unescaped content. Now when I use this methods with a json helper to feed your grid if I have HTML code interpretated in cells, or even worse javascript...</p>
<p>I would like to keep my MVC models intact and execute escape of data using javascript, or even better directly with your grid.</p>
<p>By now I will use custom formatter feature, but in the future this is a nice improvment to your beautiful piece of software.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Sat, 08 Aug 2009 18:35:36 +0300</pubDate>
        </item>
</channel>
</rss>