<?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: autoencode doesn't work with showlink</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/autoencode-doesnt-work-with-showlink</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/bugs/autoencode-doesnt-work-with-showlink/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>pimlottc on autoencode doesn't work with showlink</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/autoencode-doesnt-work-with-showlink#p25375</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/autoencode-doesnt-work-with-showlink#p25375</guid>
        	        	<description><![CDATA[<p>Here&#39;s an example:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9991' value='Select Code' data-codeid='sfcode9991' /></p>
<div class='sfcode' id='sfcode9991'>&#160; $(&#34;#grid&#34;).jqGrid({<br />&#160;&#160;&#160; autoencode: true,<br />&#160;&#160;&#160; colNames: [&#34;a&#34;, &#34;b&#34;],<br />&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name: &#34;a&#34;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name: &#34;b&#34;, formatter: &#34;showlink&#34;}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160; datatype: &#34;local&#34;<br />&#160; })<br />&#160; <br />&#160; html = &#39;foo &#60;img src=&#34;bar&#34;/&#62;&#39;;<br />&#160; $(&#34;#grid&#34;).jqGrid(&#39;addRowData&#39;, 0, {a: html, b: html});</div>
<p>The first column will encode the html properly so it appears on the page as</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9563' value='Select Code' data-codeid='sfcode9563' /></p>
<div class='sfcode' id='sfcode9563'>foo &#60;img src=&#34;bar&#34;/&#62;</div>
</p>
<p>But the showlink foramatted column ignores autoencode and renders the html</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1968' value='Select Code' data-codeid='sfcode1968' /></p>
<div class='sfcode' id='sfcode1968'><span style=&#34;text-decoration: underline;&#34;>foo [img]</span></div>
</p>
<p>What I would expect is to have the linked text appear the same as the first column.</p>
</p>
<p>I understand that a custom formatter should have to deal with encoding on its own but I think showlink should honor the autoencode option.</p>
]]></description>
        	        	<pubDate>Mon, 12 Dec 2011 23:31:09 +0200</pubDate>
        </item>
        <item>
        	<title>pimlottc on autoencode doesn't work with showlink</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/autoencode-doesnt-work-with-showlink#p25296</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/autoencode-doesnt-work-with-showlink#p25296</guid>
        	        	<description><![CDATA[<p>I noticed the autoencode option for escaping HTML doesn&#39;t get called if you specify the "showlink" formatter. &#160;I know I could create a custom formatter as a workaround, but I don&#39;t see why the link text shouldn&#39;t be escaped in this situation.</p></p>
]]></description>
        	        	<pubDate>Thu, 01 Dec 2011 19:08:33 +0200</pubDate>
        </item>
</channel>
</rss>