Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Text problem

Text problem

Scheduled Pinned Locked Moved C / C++ / MFC
htmlhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Scozturk
    wrote on last edited by
    #1

    :confused::confused::confused: Hello! I have a small problem :confused: I use the DHTMLEdit control and to get the HTML code using GetDocumentHTML but it gives me a code in this format: .... Is there a way to get this code in this format: ..... Thank you very much! :confused:

    N W 2 Replies Last reply
    0
    • S Scozturk

      :confused::confused::confused: Hello! I have a small problem :confused: I use the DHTMLEdit control and to get the HTML code using GetDocumentHTML but it gives me a code in this format: .... Is there a way to get this code in this format: ..... Thank you very much! :confused:

      N Offline
      N Offline
      Neville Franks
      wrote on last edited by
      #2

      Scolinks wrote: Is there a way to get this code in this format: ..... I doubt it. If you really don't want the new lines you will need to massage the returned text to get rid of them. Neville Franks, Author of ED for Windows. www.getsoft.com Make money with our new Affilate program

      1 Reply Last reply
      0
      • S Scozturk

        :confused::confused::confused: Hello! I have a small problem :confused: I use the DHTMLEdit control and to get the HTML code using GetDocumentHTML but it gives me a code in this format: .... Is there a way to get this code in this format: ..... Thank you very much! :confused:

        W Offline
        W Offline
        wimel
        wrote on last edited by
        #3

        Yes, it's possible. But, not that easy. The format of a HTML file is the same of a XML file. They both use as tags. With XML there are a lot of possibilities. It all depends on what you want to do with the HTML-file. If you want to parse/change/edit take al look at the DOM-parser. Then it doesn't matter if the code looks like <head> </head> or <head></head> Another possibility is using XSLT for reformatting you XML file. Again, it's not that easy to start with. succes Wimel

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups