htmlArea v3 bachillerato

Preview:

DESCRIPTION

programacion html de una página

Citation preview

// htmlArea v3.0 - Copyright (c) 2002, 2003 interactivetools.com, inc.// This copyright notice MUT stay intact !or "se (see license.t#t).//// $ortions (c) %ynarch.com, 2003-200&//// A !ree '()'(* e%itor replacement !or +te#tarea, !iel%s.// -or !"ll so"rce co%e an% %ocs, visit http./////.interactivetools.com///// 0ersion 3.0 %evelope% 1y Mihai 2a3on.// http.//%ynarch.com/mishoo//// 4)%. htmlarea.php,v 5.5.5.5 2050/55/56 00.0&.56 csvm 7#p 4i! (typeo! 8e%itor8"rl 99 :string:) ;// /(4N>/)/A// Hope!"lly a complete list o! tags that M)7s parser /ill consi%er// as possi1le content tags. Cetrieve% !rom// http./////.echoecho.com/htmlre!erence.htmHTM/P(aNa11rNacronymNa%%ressNappletNareaN1N1aseN1ase!ontN1%oN1gso"n%N1igN1lin=N1loc=G"oteN1o%yN1rN1"ttonNcaptionNcenterNciteNco%eNcolNcolgro"pNcommentN%%N%elN%!nN%irN%ivN%lN%tNemNem1e%N!iel%setN!ontN!ormN!rameN!ramesetNh5Nh2Nh3Nh&NhQNhRNhea%NhrNhtmlNiNi!rameNilayerNimgNinp"tNinsNisin%e#N=1%N=eygenNla1elNlayerNlegen%NliNlin=NmapNmarG"eeNmen"NmetaNm"lticolNno1rNnoem1e%Nno!ramesNnolayerNnoscriptNo1FectNolNoptgro"pNoptionNpNparamNplainte#tNpreNGNsNsampNscriptNselectNserverNsmallNspacerNspanNstri=eNstrongNstyleNs"1Ns"pNta1leNt1o%yNt%Nte#tareaNt!ootNthNthea%NtitleNtrNttN"N"lNvar)4/iHTM/PspanKO,L?,/gi,@ @).replace(/+>/P%ivKO,L?,/gi,@ @).replace(/+>/PpreKO,L?,/gi,@ @).replace(/+(>/P)(hK5-RLM)KO,L?,/gi,@+4542,@)A// KKO>LL?>L--,/gi,@ @)A//remove empty tags//I 9 I.replace(/+strong,+>/strong,/gi,@@).//replace(/+i,+>/i,/gi,@@).//replace(/+$KO,L?,+>/$,/gi,@@)AI 9 I.replace(/+hK5-RLM,>sP+>/hK5-RLM,/gi, @@)A // Cemove empty hea%ings// n"=e %o"1le tagsol%len 9 I.length M 5A/hile(ol%len , I.length) ;ol%len 9 I.lengthA// Foin "s no/ an% !ree the tags, /e@ll 1e !ree hac=ers, /e@ll 1e !ree... A-)I 9 I.replace(/+(Ka-3LKa-3L?), ?+>/>5,/gi,@ @).replace(/+(Ka-3LKa-3L?), ?+(Ka-3LKO,L?), ?+>/>5,/gi,@+42,@)ABI 9 I.replace(/+(Ka-3LKa-3L?),+>5,/gi,@+45,@).replace(/+>/(Ka-3LKa-3L?),+>/>5,/gi,@+>/45,@)A// n"=e %o"1le spacesI 9 I.replace(/?/gi,@ @)A// plit into lines an% remove// empty lines an% a%% carriage ret"rns 1ac=var splitter9 />K1r>L/gAvar emptysM>sM4/gAvar strHTM< 9 @@Avar ton@ABI 9 strHTM

Recommended