SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist
    Join Date
    Aug 2005
    Posts
    574
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Prevent rendering of certain tags

    What's the tag for displaying code within text (i.e., preventing the code from rendering)? I thought it was either <code> or <pre> but neither of those is doing what I want. I'm trying to display this line as text (i.e., so the SPAN tag shows as text instead of being parsed):

    "An example of using the LANG attribute is: <SPAN LANG="fr">Cette phrase est en franšais</SPAN>."

    This is for a WordPress blog, if that makes a difference. It works fine in this forum, but WordPress renders it.

    Thanks.

  2. #2
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Replace < with &lt; and & with &amp;.
    Simon Pieters

  3. #3
    SitePoint Evangelist
    Join Date
    Aug 2005
    Posts
    574
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, perfect. Thanks.


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
  •