[CLOSED] [1.0] Decode HTML characters

  1. #1

    [CLOSED] [1.0] Decode HTML characters

    I've got an editable GridPanel that displays data from a Store. Some of the data contains encoded HTML data to help prevent against XSS attacks etc, e.g.

    Test < Test
    When the data is displayed in the GridPanel, the "&amp; lt" text isn't replaced with the display character "<". What's the best way of getting the GridPanel to display this data in the correct format?

    I notice there's an AutoEncode attribute on the GridPanel, however this doesn't seem to affect the displaying of data.
  2. #2

    RE: [CLOSED] [1.0] Decode HTML characters

    Sorry, please ignore this post - I just realised I had also been encoding some of the data on the server-side when saving it, as well as the Store encoding data client-side which caused things to go wrong.
  3. #3

    RE: [CLOSED] [1.0] Decode HTML characters

    Hi,

    You can use the following Renderer if need decode html for display in cell
    <Renderer Format="HtmlDecode" />

Similar Threads

  1. [CLOSED] JSON Decode Exception
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 28, 2012, 2:58 PM
  2. html decode textarea
    By maxdiable in forum 1.x Help
    Replies: 2
    Last Post: Jan 22, 2010, 3:54 AM
  3. [CLOSED] Ext.decode server side
    By bsnezw in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 29, 2009, 11:59 AM
  4. html decode on combo box
    By [WP]joju in forum 1.x Help
    Replies: 1
    Last Post: Dec 22, 2009, 6:20 AM
  5. HTML Decode using XTemplate
    By rthiney in forum 1.x Help
    Replies: 2
    Last Post: Aug 11, 2009, 2:34 PM

Posting Permissions