1. #1
    Ext User
    Join Date
    Jul 2009
    Posts
    27
    Vote Rating
    0
    amodg is on a distinguished road

      0  

    Default html decode problem for single quote

    html decode problem for single quote


    Hi,

    I'm trying to decode the string

    var myName = 'D& #39;Souza.';(Being this a html editor,I have added a space after '&' to avoid decoding as this post renders)
    var mydata = Ext.util.Format.htmlDecode(myName);
    alert(mydata);

    I am still getting the same string. Am I missing something?

    Thanks,
    -Amod

  2. #2
    Sencha User
    Join Date
    Jul 2008
    Posts
    22
    Vote Rating
    1
    simplessus is on a distinguished road

      0  

    Default


    Has anybody solved this ? I have the same problem.

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    htmlDecode only changes <, >, " and &

    You will have to replace them yourself using a RegExp or render the text to a hidden element and get the innerHTML.

    ps. You can post HTML entities by using the noparse tag, e.g.
    &[noparse][/noparse]#39; will display as '

  4. #4
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    Quote Originally Posted by Condor View Post

    ps. You can post HTML entities by using the noparse tag, e.g.
    &[noparse][/noparse]#39; will display as '
    you can put any tag inside like &[B][/B]#39; results in '
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

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..." hd porno faketaxi