Display html code in a webpage

Discussion in 'Web Design and Development' started by Dark Lain, Mar 26, 2008.

  1. Dark Lain macrumors member

    Dark Lain

    Joined:
    Apr 29, 2005
    #1
    How can I display html code in an html document without executing it?

    I already know about replacing the brackets but how would I display something like the code for double left quotation-mark without Safari showing "
     
  2. Aranince macrumors 65816

    Joined:
    Apr 18, 2007
    Location:
    California
  3. Volante macrumors regular

    Joined:
    Feb 8, 2008
    #3
    The trick is to replace the amp-char (&) with &.

    " -> " -> "
     

Share This Page