mhonarc-commits
[Top] [All Lists]

CVS: mhonarc/MHonArc/lib mhtxthtml.pl,2.22,2.23

2002-10-26 20:12:30
Update of /cvsroot/mhonarc/mhonarc/MHonArc/lib
In directory subversions:/tmp/cvs-serv14550

Modified Files:
	mhtxthtml.pl 
Log Message:
* STYLE and CLASS attributes stripped if nofont specified.


Index: mhtxthtml.pl
===================================================================
RCS file: /cvsroot/mhonarc/mhonarc/MHonArc/lib/mhtxthtml.pl,v
retrieving revision 2.22
retrieving revision 2.23
diff -C2 -r2.22 -r2.23
*** mhtxthtml.pl	11 Oct 2002 01:57:53 -0000	2.22
--- mhtxthtml.pl	27 Oct 2002 03:12:25 -0000	2.23
***************
*** 160,163 ****
--- 160,166 ----
  	$$data =~ s|<style[^>]*>.*?</style\s*>||gios;
  	$$data =~ s|</?font\b[^>]*>||gio;
+ 	$$data =~ s|\b(?:style|class)\s*=\s*"[^"]*"||gio; #"
+ 	$$data =~ s|\b(?:style|class)\s*=\s*'[^']*'||gio; #'
+ 	$$data =~ s|\b(?:style|class)\s*=\s*[^\s>]+||gio;
      }
  

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV