Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other cleaning html tags

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #174853
    krivo
    Participant

    Hello,
    I need a script to remove the following line from my web pages which come from data base made with an editor, the line to be removed:

    <P><SPAN>
    

    Many Thanks,
    Yosi

    #174862
    Paulie_D
    Member

    I’m pretty sure that tag structure is too generic for any JS to target the correct ones.

    #174875
    krivo
    Participant

    this is the code to be removed:
    <P style="MARGIN: 0cm 11.3pt 0pt 21.3pt" dir=rtl class=MsoNormal><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 14px; mso-ascii-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi" lang=HE>

    #174881
    Paulie_D
    Member

    Wow…you need a huge regular expression parser to do that I suspect.

    Unfortunately, we’re not a code writing site.

    That’s not to say that someone might not be able to point you in the right direction but, frankly, if your CMS is putting out that “fluff” it’s more of a systematic error than one that should be cleaned up with, what I would imagine, be an enormously complicated script.

    I’d hire somone….

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.