Solved

how to escape an ampersand or &sec in url

Posted on 2006-11-09
3
5,451 Views
Last Modified: 2007-12-19
Hi,

I have the following URL which I'm entering into a database.

<a href="http://orient.bowdoin.edu/orient/article.php?date=2006-11-10§ion=3&id=1">http://orient.bowdoin.edu/orient/article.php?date=2006-11-10§ion=3&id=1</a>

The URL goes to the right page but the link displays on the website with a strange S character instead of &sec in the word section.  I realize &sec is the HTML code for the strange S character.  How do I escape the &sec in the URL so it reads correctly instead of displaying the S?

Thanks,
Katrina
0
Comment
Question by:katrina_mc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 17906923
0
 
LVL 30

Expert Comment

by:Steggs
ID: 17907022
Greetings Katrina,

You need to escape the &'s by using &amp;

So, your link should be

<a href="http://orient.bowdoin.edu/orient/article.php?date=2006-11-10&section=3&id=1">http://orient.bowdoin.edu/orient/article.php?date=2006-11-10&section=3&id=1</a>

Regards
0
 
LVL 30

Expert Comment

by:Steggs
ID: 17907034
just replace all & with &amp;
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question