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
  1. Home
  2. Other Discussions
  3. Workspaces Forum
  4. Display HTML "as HTML"

Display HTML "as HTML"

Scheduled Pinned Locked Moved Workspaces Forum
htmlcom
4 Posts 2 Posters 11 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.
  • M Offline
    M Offline
    Marco Bertschi
    wrote on last edited by
    #1

    There is a readme HTML file in my project[^]. In the preview mode, only the raw HTML data is display. From my POV it would be really nice to have the option to display HTML and similar files as if they are displayed in a normal browser, in addition to view the raw data.

    The scariest moment is always just before the Start - Stephen King
    Die Frauen warten auf die Liebe, und die Männer warten auf die Frauen - Wolf Wondratschek

    K 1 Reply Last reply
    0
    • M Marco Bertschi

      There is a readme HTML file in my project[^]. In the preview mode, only the raw HTML data is display. From my POV it would be really nice to have the option to display HTML and similar files as if they are displayed in a normal browser, in addition to view the raw data.

      The scariest moment is always just before the Start - Stephen King
      Die Frauen warten auf die Liebe, und die Männer warten auf die Frauen - Wolf Wondratschek

      K Offline
      K Offline
      Kamil Burzynski
      wrote on last edited by
      #2

      That would be interesting option, indeed, although we need to take security into consideration. Running unsoliticed HTML/JS from unauthorized third-party might end up in disaster. You certainly would not like your private data (like session cookie) being stolen while you're watching live HTML from some malicious user.

      M 1 Reply Last reply
      0
      • K Kamil Burzynski

        That would be interesting option, indeed, although we need to take security into consideration. Running unsoliticed HTML/JS from unauthorized third-party might end up in disaster. You certainly would not like your private data (like session cookie) being stolen while you're watching live HTML from some malicious user.

        M Offline
        M Offline
        Marco Bertschi
        wrote on last edited by
        #3

        Kamil Burzynski wrote:

        That would be interesting option, indeed, although we need to take security into consideration. Running unsoliticed HTML/JS from unauthorized third-party might end up in disaster.

        I reckon that the article HTML editor [and the editor I write this message in, IIRC] do something like removing the potentionally malicious bits on submit, maybe you can reuse this functionality? Article content is pure HTML, too and yet it seems to be pretty up to date when it comes to security considerations. To clarify: I'm not talking about "pure" HTML, I just want to be able to view the HTML displayed as HTML, without any fancy-pants Javascript bits - Of course the preview will never be able to show 'fully functional' HTML pages, just displaying a HTML-formatted readme file which is static text should be good enough [As it was an article, from the formatting POV]

        The scariest moment is always just before the Start - Stephen King
        Die Frauen warten auf die Liebe, und die Männer warten auf die Frauen - Wolf Wondratschek

        K 1 Reply Last reply
        0
        • M Marco Bertschi

          Kamil Burzynski wrote:

          That would be interesting option, indeed, although we need to take security into consideration. Running unsoliticed HTML/JS from unauthorized third-party might end up in disaster.

          I reckon that the article HTML editor [and the editor I write this message in, IIRC] do something like removing the potentionally malicious bits on submit, maybe you can reuse this functionality? Article content is pure HTML, too and yet it seems to be pretty up to date when it comes to security considerations. To clarify: I'm not talking about "pure" HTML, I just want to be able to view the HTML displayed as HTML, without any fancy-pants Javascript bits - Of course the preview will never be able to show 'fully functional' HTML pages, just displaying a HTML-formatted readme file which is static text should be good enough [As it was an article, from the formatting POV]

          The scariest moment is always just before the Start - Stephen King
          Die Frauen warten auf die Liebe, und die Männer warten auf die Frauen - Wolf Wondratschek

          K Offline
          K Offline
          Kamil Burzynski
          wrote on last edited by
          #4

          Yes, a secure display of HTML is certainly a solvable problem ;)

          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