SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Escaping tags within tags
-
Feb 2, 2007, 12:12 #1
- Join Date
- Nov 2006
- Location
- England, UK
- Posts
- 191
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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
-
Feb 2, 2007, 12:15 #2
< instead of < should take care of tag escaping. Also mark your code up in a <code></code> or <pre></pre> tag.
-
Feb 2, 2007, 12:22 #3
- Join Date
- Nov 2006
- Location
- England, UK
- Posts
- 191
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Excellent
Excellent many thanks!
David
-
Feb 2, 2007, 14:08 #4
- Join Date
- Dec 2004
- Location
- Sweden
- Posts
- 2,670
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Also escape any &s as &. If you have any ]]>s then write those as ]]> to maintain well-formedness.
Simon Pieters
Bookmarks