Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8120173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:03:00+00:00 2026-06-06T05:03:00+00:00

I have a page with some very basic examples that use HTML/CSS/JavaScript. I’d like

  • 0

I have a page with some very basic examples that use HTML/CSS/JavaScript. I’d like to be able to post the code for these examples as text on my website. I’ve tried using the the pre and code elements to wrap the block of text that represents the code.

Here is the site: https://mywebspace.wisc.edu/jkinzel/examples/

The last small problem is that in certain instances, the < and > are being encoded as &gt; and &lt;. You see in the second example’s code (under the JavaScript and CSS headings) that this is case, but only on certain occasions. Other times they are properly displayed as < and > (which is what I want).

Anyone have any ideas as to why this happens sometimes and not others?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T05:03:02+00:00Added an answer on June 6, 2026 at 5:03 am

    From my comment above:

    It’s a result of the text being encoded twice; that is, it’s encoded once to turn the < and > characters into HTML entities, and then those are encoded again, which makes them stop working. That is, &lt; turns into &amp;lt; when it’s encoded twice.

    More detail: The most important characters to encode in order to show HTML as it looks in source form are “<” and “&”; generally people encode “>” too, though usually it’s not a problem. (Actually, “&” by itself is also usually not a problem, but whatever.) HTML entities look like “&foo;”, where “foo” is some key. Thus, when you encode text, you end up with “&foo;” all over the place. When you encode again, the “&” at the beginning of those little strings is re-encoded as “&”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have this page that has some basic custom tabs: http://demo.unlockedmanagement.com/users/view/2 * NOTE
I have a page with some HTML in it. and I need to set
I have HTML page with some HTML element with ID=logo . I need to
How to find all files in directory? I have HTML page in some directory.
If I have a page that takes some amount of time to process, and
I have a HAML page that lists some links to delete things that looks
I have a very basic ASP.NET web site. It has a single page (TestPage.aspx)
I am very new to Spring and I have been given some basic instructions
I have a very basic form, with some very basic validations (though I need
Ok. I know this is very basic. I want to have some basic tags

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.