How to disallow <!-- -->

Discussion in 'HTML & Website Design' started by whosedomain, Aug 11, 2009.

  1. #1
    I want to show the content within <!-- -->, how to disallow <!-- --> then?
     
    whosedomain, Aug 11, 2009 IP
  2. AssistantX

    AssistantX Peon

    Messages:
    173
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You are unable to force a browser to show the contents of an HTML comment (<!-- -->) as browsers render what's inside the comments as basically non-existent. Therefore, the comment tags would have to be removed before the markup is sent to the browser either by hand or by server-side script.

    What exactly are you trying to do that makes you want to display what's between the comment tag? Why not just remove the tags all together?
     
    AssistantX, Aug 11, 2009 IP
  3. hkhera

    hkhera Peon

    Messages:
    118
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can use firbug (mozilla addon) which will allow you to edit a page temporarily at runtime..
     
    hkhera, Aug 13, 2009 IP
  4. zartworkdesigns

    zartworkdesigns Peon

    Messages:
    115
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I agree with assistantX, why not just remove the tags if you want to see whats in them?
     
    zartworkdesigns, Aug 13, 2009 IP