Validate HTML in a post

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmans
    New Member
    • Nov 2006
    • 2

    Validate HTML in a post

    Does anyone have an idea how to validate HTML in a given post. It doesn't have to be perfect XHTML standard, just something to catch html tags that are not closed so that it doesn't mess up the site.

    If you have a script, post a sample for us all. thanks.
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    If you want to validate your code, go to W3C Validation tool

    Ronald :cool:

    Comment

    • cassbiz
      New Member
      • Oct 2006
      • 202

      #3
      Originally posted by dmans
      Does anyone have an idea how to validate HTML in a given post. It doesn't have to be perfect XHTML standard, just something to catch html tags that are not closed so that it doesn't mess up the site.

      If you have a script, post a sample for us all. thanks.

      You can the 'HTML KIT' from Chami It has a tool to check your code and make sure that you have all brackets, quotes, etc... closed.

      It can also alert you to errors in your code.

      Comment

      • dmans
        New Member
        • Nov 2006
        • 2

        #4
        Sorry... i should clarify. I want to make sure the information my users post to the forum or blog or html valid to some degree so it does not break the site. Just want the tags to be closed, etc.

        Does anyone know of any function/code that I can run a bunch of text through to make sure it is slightly valid (not XHTML - overboard for what I need).

        Thanks

        Comment

        Working...