Re: Outlook Crapolla: The Fakie Breakie



Dr.Ruud wrote:
s~ < (SPAN) (?:\s[^>]*)? > \s* < / \1 > ~~xg ;
s~ < (FONT) (?:\s[^>]*)? > \s* < / \1 > ~~xg ;
s~ < (DIV) (?:\s[^>]*)? > \s* &nbsp; \s* < / \1 > ~~xg ;

Great idea, but I'm not sure that these tags will always be in the same
order. (i.e. <div><font><span>). I used this HTML::TreeBuilder class
to remove empty tags, which is a solid alternative to what you wrote
above. But I still can't remove these tags outright, just because they
might be important depending on the spacing properties of these mystery
styles. I did some research this morning on the Microsoft CSS class,
MsoNormal, which if the newsgroups are correct, is supposed to make a
newline meaningless. So i guess the real trick it to remove all
MsoNormal tags, then do what you did above with the &nbsp; -> <br>.

Thanks!

Mike

.



Relevant Pages

  • Re: server side includes
    ... .I didn't add those empty tags. ... > It also contains some invalid HTML, ... >> table format, could that have anything to do with it? ...
    (microsoft.public.frontpage.programming)
  • [kde] KAddressbook Spawning Tags
    ... The problem is that it is spawning hundreds and hundreds ... of empty tags and tags in this format: ... contact still shows up in searches using the previously assigned tag althoug ...
    (KDE)
  • REXML/Amrita2 closing tag
    ... I've noticed that Amrita2 (which uses REXML), automagically compresses ... empty tags, for example: ... textarea tags, which must always be matched by a full closing tag (</ ...
    (comp.lang.ruby)
  • Re: REXML/Amrita2 closing tag
    ... I've noticed that Amrita2 (which uses REXML), automagically compresses ... empty tags, for example: ... textarea tags, which must always be matched by a full closing tag (</ ...
    (comp.lang.ruby)
  • Re: RE Module
    ... Newsgroups: comp.lang.python ... I suspect you have tags spanning lines, a thing you get more often than not. ... help those who are if you gave examples of your input and output data. ... What results are you getting for what input strings. ...
    (comp.lang.python)