Forum /
Ext JS Community Forums 3.x /
Ext 3.x: Help & Discussion /
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
Has anybody solved this ? I have the same problem.
Sencha - Community Support Team
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 '
Sencha User
Originally Posted by
Condor
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
energlobe.de - german online magazine
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us