Solved

how to escape an ampersand or &sec in url

Posted on 2006-11-09
3
5,400 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&section=3&id=1">http://orient.bowdoin.edu/orient/article.php?date=2006-11-10&section=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
  • 2
3 Comments
 
LVL 84

Accepted Solution

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

Expert Comment

by:Steggs
ID: 17907022
0
 
LVL 30

Expert Comment

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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now