/    Sign up×
Community /Pin to ProfileBookmark

Escape Characters

I know that & q u o t ; = ” in HTML. Is there anything similar for a single quote (‘)? Thanks!

to post a comment
HTML

9 Comments(s)

Copy linkTweet thisAlerts:
@fredmvJan 21.2004 — '
Copy linkTweet thisAlerts:
@stu_pbauthorJan 21.2004 — I am using IE 6 and using ' does not work.
Copy linkTweet thisAlerts:
@fredmvJan 21.2004 — Works fine in Mozilla. Try this:'
Copy linkTweet thisAlerts:
@stu_pbauthorJan 21.2004 — It works in IE6. Thanks a lot for the help!
Copy linkTweet thisAlerts:
@fredmvJan 21.2004 — No problem — and, just to note, it is usually better to use numbered HTML entities (e.g., [font=courier]'[/font]) as opposed to named HTML entities (e.g., [font=courier]'[/font]). Simply because, as shown here, it does not promise cross-browser compatibility. For future reference, I'd suggest checking out [url=http://www.asciitable.com/]asciitable.com[/url].
Copy linkTweet thisAlerts:
@Jeff_MottJan 22.2004 — it is usually better to use numbered HTML entities (e.g., &#39? as opposed to named HTML entities (e.g., &apos?[/quote]Though note, the only reason it was not widely supported in this case is because the apos named entity is not in the HTML spec.

http://www.w3.org/TR/html401/sgml/entities.html
Copy linkTweet thisAlerts:
@fredmvJan 22.2004 — Very good (and valid) point Jeff, although I do find it interesting that Mozilla supports it and IE doesn't — wouldn't you imagine it to be the other way around? ?
Copy linkTweet thisAlerts:
@Robert_WellockJan 22.2004 — Because Mozilla is a native XHTML Browser thus that is the reason &pos; which is an XML Character Entity is understood.

http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_xhtml_character_entities
Copy linkTweet thisAlerts:
@fredmvJan 22.2004 — Interesting, thanks for the clarification Robert. ?
×

Success!

Help @stu_pb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...