SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot get_dave's Avatar
    Join Date
    Nov 2006
    Location
    England, UK
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Escaping tags within tags

    Hi guys,

    I may be being really dumb but i've forgotten how to output HTML tags on a page. What I want to do is provide an example of link HTML syntax for a site visitor to copy.

    Any help would be really appreciated. I am validating XHTML
    I'm looking for a link exchange.
    contact me or head to:
    http://www.aheadcreative.co.uk

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    &lt; instead of < should take care of tag escaping. Also mark your code up in a <code></code> or <pre></pre> tag.

  3. #3
    SitePoint Zealot get_dave's Avatar
    Join Date
    Nov 2006
    Location
    England, UK
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking Excellent

    Excellent many thanks!

    David
    I'm looking for a link exchange.
    contact me or head to:
    http://www.aheadcreative.co.uk

  4. #4
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also escape any &s as &amp;. If you have any ]]>s then write those as ]]&gt; to maintain well-formedness.
    Simon Pieters


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •