tags:

views:

273

answers:

3

I am not an ASP expert, just trying to help a friend.

It the past, HTML,I use ' for apostrophes in text.

Using the following it renders fine in Firefox but incorrect in IE 7.

asp:LinkButton ID="AceFrehley95Button" Text="Ace Frehley ' 95" OnCommand="lbtnSubMenu_Command" CommandArgument="AceFrehley95.wmv" Runat="Server"

In Firefox it renders: Ace Frehley '95

In IE 7 it renders: Ace Frehley &apos 95

How do I make IE render what Firefox does......

Jason

+5  A: 

HTML doesn't actually have a ' entity. A lot of browsers support it (probably because it is a part of XHTML), but "officially" it doesn't exist. You should use ' instead.

mipadi
+1. Also of course there's no need to escape the apostrophe in that particular example; the need for apos escapes only arises when you are (or might be) using single quotes to delimit attribute values. (Text='fish 'n' chips')
bobince
A: 

Unless you are a typography purist,

   ´

may be close enough.

cdonner
-1 ... this must have been a typography purist :-)
cdonner
A: 
GregD