HTML entities replacement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anonymous
    Banned
    New Member
    • Sep 2005
    • 99

    HTML entities replacement

    How can I replace characters like & # 038; on their equivalents in a shorter way in python script?
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by anonymous
    How can I replace characters like & # 038; on their equivalents in a shorter way in python script?
    I'm not getting this: What are "their equivalents"? Can you give an example of what you are trying to achieve and how you are doing it?

    Comment

    • linksterman
      New Member
      • Jul 2007
      • 38

      #3
      well like &apos is an apostrophe. there are dozens and dozens of these.

      Comment

      • anonymous
        Banned
        New Member
        • Sep 2005
        • 99

        #4
        2bartonc example

        It's simple to replace but I have no time to create hash tables for replacement.
        Probably exists special library for my task?

        Comment

        • Andelys
          New Member
          • Aug 2007
          • 47

          #5
          If you wonna replace them all, its gonna take time... There are maybe +10000k of those tag...

          Comment

          Working...