How can I stop HTML from parsing?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trancetopia
    Member
    • Feb 2005
    • 49
    • 3.0.6

    How can I stop HTML from parsing?

    I know it's a security risk but not for what i'm doing. HTML is enabled for a single forum that nobody can post in. I spent lots of time earlier formatting an article using html and CSS and to my horror, all the HTML seemed to have been parsed and whatever parsed made a very poor job of changing the all my efforts.

    My question is this, how can HTML parsing be turned off?

    Thanks,
    Paul
    www.littlewales.com
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    Disable the html? I'm slightly confused, why enable html if you dont want it to be parsed?

    Comment

    • trancetopia
      Member
      • Feb 2005
      • 49
      • 3.0.6

      #3
      Sorry, maybe parsed is the wrong word in vB terms. I'll ellaborate.

      When entering markup in the editor as text, it keeps what i've created when previewing the image. When the post is submitted and I then go to edit the post again, all the html has changed. This is what I need to stop happening.
      www.littlewales.com

      Comment

      • Andy Huang
        Senior Member
        • Feb 2004
        • 4602

        #4
        Sorry, I'm still having a hard time understanding the issue. Please provide a link of this happening, while providing us a step-by-step procedure as to how to replicate this issue, along with what is happening and what you expect to happen, so we know what is happening and if it is at all possible to resolve.
        Best Regards,
        Andy Huang

        Comment

        • trancetopia
          Member
          • Feb 2005
          • 49
          • 3.0.6

          #5
          It's in a private forum at the moment so not able to post a link. I've added the before and after code for you.

          The following is what is entered into the editor:

          HTML Code:
          <table cellSpacing="1" cellPadding="4" align="center"><tr><td style="border: 1px #000000 solid;">[IMG]http://www.phototopix.co.uk/gallery/data/520/version1.jpg[/IMG]</td><td style="border: 1px #000000 solid;">[IMG]http://www.phototopix.co.uk/gallery/data/520/version2.jpg[/IMG]</td></tr><tr><td style="color: #ffffff; background-color: #000000; text-align: center;">Version 1</td><td style="color: #ffffff; background-color: #000000; text-align: center;">Version 2</td></tr></table
          Save the post then editing the post again, the above is turned into the following:

          HTML Code:
          <TABLE cellSpacing=1 cellPadding=4 align=center><TBODY><TR><TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid">[IMG]http://www.phototopix.co.uk/gallery/data/520/version1.jpg[/IMG]</TD><TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid">[IMG]http://www.phototopix.co.uk/gallery/data/520/version2.jpg[/IMG]</TD></TR><TR><TD style="COLOR: #ffffff; BACKGROUND-COLOR: #000000; TEXT-ALIGN: center">Version 1</TD><TD style="COLOR: #ffffff; BACKGROUND-COLOR: #000000; TEXT-ALIGN: center">Version 2</TD></TR></TBODY></TABLE>
          This doesn't mess up the formatting as I first though but wouldn't mind findout what is changing the markup especially the style info. This is what I'd like to turn off.

          Hope this makes sense.
          www.littlewales.com

          Comment

          • Andy Huang
            Senior Member
            • Feb 2004
            • 4602

            #6
            Testing quickly:
            <table cellSpacing="1" cellPadding="4" align="center"><tr><td style="border: 1px #000000 solid;"></td><td style="border: 1px #000000 solid;"></td></tr><tr><td style="color: #ffffff; background-color: #000000; text-align: center;">Version 1</td><td style="color: #ffffff; background-color: #000000; text-align: center;">Version 2</td></tr></table>

            Code:
            <table cellSpacing="1" cellPadding="4" align="center"><tr><td style="border: 1px #000000 solid;">[IMG]http://www.phototopix.co.uk/gallery/data/520/version1.jpg[/IMG]</td><td style="border: 1px #000000 solid;">[IMG]http://www.phototopix.co.uk/gallery/data/520/version2.jpg[/IMG]</td></tr><tr><td style="color: #ffffff; background-color: #000000; text-align: center;">Version 1</td><td style="color: #ffffff; background-color: #000000; text-align: center;">Version 2</td></tr></table>
            HTML Code:
            <table cellSpacing="1" cellPadding="4" align="center"><tr><td style="border: 1px #000000 solid;">[IMG]http://www.phototopix.co.uk/gallery/data/520/version1.jpg[/IMG]</td><td style="border: 1px #000000 solid;">[IMG]http://www.phototopix.co.uk/gallery/data/520/version2.jpg[/IMG]</td></tr><tr><td style="color: #ffffff; background-color: #000000; text-align: center;">Version 1</td><td style="color: #ffffff; background-color: #000000; text-align: center;">Version 2</td></tr></table>




            Edit: I'm not seeing the above mentioned HTML changing... Do you mean the image showing up? If so, wrap noparse tag around it; IE:
            Code:
            [noparse][noparse]<table cellSpacing="1" cellPadding="4" align="center"><tr><td style="border: 1px #000000 solid;">[IMG]http://www.phototopix.co.uk/gallery/data/520/version1.jpg[/IMG]</td><td style="border: 1px #000000 solid;">[IMG]http://www.phototopix.co.uk/gallery/data/520/version2.jpg[/IMG]</td></tr><tr><td style="color: #ffffff; background-color: #000000; text-align: center;">Version 1</td><td style="color: #ffffff; background-color: #000000; text-align: center;">Version 2</td></tr></table>[/noparse][/noparse]
            Best Regards,
            Andy Huang

            Comment

            • trancetopia
              Member
              • Feb 2005
              • 49
              • 3.0.6

              #7
              Odd, the second code is what it changed too. It's turned all the border:1px #000000 solid; into four elements.

              Anyway, it's not causing issues so just wanted to know why this happens.

              Thanks for taking the time to look into this, it's really appreciated Andy.
              www.littlewales.com

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...