tag:blogger.com,1999:blog-7157500263328606425.post4178276799446228249..comments2023-09-29T01:09:57.591-07:00Comments on El Micox Codes: htmlEntities, array_search and strip_tags in JavaScriptUnknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7157500263328606425.post-36395426550871996462009-12-10T01:48:05.904-08:002009-12-10T01:48:05.904-08:00function html_entity_decode(s) {
//with prototype
...function html_entity_decode(s) {<br />//with prototype<br />return new Element('textarea').update(s).innerHTML.replace('&','&');<br />}Martinhttps://www.blogger.com/profile/16219752053588991536noreply@blogger.comtag:blogger.com,1999:blog-7157500263328606425.post-30711796072072662182008-02-21T11:39:00.000-08:002008-02-21T11:39:00.000-08:00HOU ié.Thanks tubal martin.HOU ié.<BR/>Thanks tubal martin.Micox - Náiron J. C. G.https://www.blogger.com/profile/02362544943059265823noreply@blogger.comtag:blogger.com,1999:blog-7157500263328606425.post-62326918371277538962008-02-21T09:31:00.000-08:002008-02-21T09:31:00.000-08:00Referring to your html_entities function...I think...Referring to your html_entities function...I think it'be better to write it like I do:<BR/><BR/>function(cadena) {<BR/> <BR/> var caracter = "";<BR/> var cadenaProcesada = "";<BR/> <BR/> for(var i=0; i < cadena.length; i++)<BR/> {<BR/> caracter = cadena.charCodeAt(i);<BR/> <BR/> if( (caracter > 47 && caracter < 58) || (caracter > 62 && caracter < 127) )<BR/> {<BR/>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7157500263328606425.post-29479511829822511592008-02-20T12:22:00.000-08:002008-02-20T12:22:00.000-08:00Thank you, Thank you. I just used your strip tags...Thank you, Thank you. I just used your strip tags function.Anonymousnoreply@blogger.com