1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    4
    Vote Rating
    0
    nev is on a distinguished road

      0  

    Default Unanswered: how can I prevent displaying images or iframes in EditorGrid?

    Unanswered: how can I prevent displaying images or iframes in EditorGrid?


    Hi, I have a editorgrid and when I type the following lines in any row, the image or iframe gets displayed.how can I prevent image or iframes getting displayed?

  2. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    4
    Vote Rating
    0
    nev is on a distinguished road

      0  

    Default how can I prevent images or iframes getting displayed on EditorGrid?

    how can I prevent images or iframes getting displayed on EditorGrid?


    Hi, I have an EditorGrid and when I enter the following in any column, image or iframe gets displayed.
    <iframe src='www.google.com' />
    <img src="www.google.com" />

    how can I prevent image or iframes getting displayed?

  3. #3
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    How are these getting drawn at all? Likely you need to be sure that user input is correctly encoded - this should be automatic in GXT 3 (and this is the GXT 3 forum), though requires some effort in GXT 2.

    EditorGrid only exists in GXT 2 (the concept is slightly different in 3), so I assume you are talking about that. The easiest way is to set up a GridCellRenderer for the column that htmlencodes the strings passed in so no html is rendered. Consider the com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape(String) function for this purpose.

    If you want to selectively process html tags, this isn't something GWT or GXT really provide support for, as there are many ways to render arbitrary content (use of img tag, iframe tag, onerror attribute, background-image css, to name only a few).

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."