sending a single quote in html parameters
Posted on 2002-03-28
I am building an A href. The href MUST contain a single quote in the parameter. When i link, the html truncates at the single quote.
the link looks like this. It is using two seperate single quotes.
<A href = theAsset.jsp?AssetName=19'' Dell>19'' Dell</A>
However when the mouse is hovered over the link the link appears as so:
How can i fix this?
Is there a way to fix this so each line does not need escape sequences. In other words so that the page need not be hard coded on each line to fix it. This is important because I will not always know when single quotes are in the link.
Finally, why is this happening?