LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 02-19-2006, 10:54 PM   #1
justanothersteve
Member
 
Registered: Aug 2005
Location: Missouri, USA
Distribution: Gentoo
Posts: 161

Rep: Reputation: 30

How can I get apostrophe's to show up on a webpage I have without a preceeding \

ex:
I'm I\'m

Also the same for " showing up as \"

I'm having the issue with b2evolution but also had the same problem with wordpress. Any ideas

Last edited by justanothersteve; 02-19-2006 at 11:34 PM. Reason: Simplifying question
 
Old 02-20-2006, 01:36 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,164

Rep: Reputation: 238Reputation: 238Reputation: 238
Try: '
 
Old 02-20-2006, 01:41 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 10.04, Crunchbang Statler
Posts: 3,325

Rep: Reputation: 168Reputation: 168
From a HTML perspective, you do not need to escape a single quote.
Code:
<!-- some html -->
' displays as single quote
There is a special code for double quotes
Code:
<!-- some html -->
&quot; displays as double quote
Do not forget the semicolon at the end.

There are more codes that you must be aware of, e.g. smaller than &lt; and greater than &gt;.
A list that I found on the internet

Last edited by Wim Sturkenboom; 02-20-2006 at 08:12 AM. Reason: corrected &quote; to &quot;
 
Old 02-20-2006, 02:46 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,164

Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by Wim Sturkenboom
From a HTML perspective, you do not need to escape a single quote.
Code:
<!-- some html -->
' displays as single quote
There is a special code for double quotes
Code:
<!-- some html -->
&quote; displays as double quote
Do not forget the semicolon at the end.
The double quote is not more (nor less) special that the single quote.

&apos; and &quote; can be used to simplify embedding HTML code with other languages syntax, which I presume "b2evolution" and "wordpress" are doing.
 
Old 02-20-2006, 09:43 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 10.04, Crunchbang Statler
Posts: 3,325

Rep: Reputation: 168Reputation: 168
You're right. Always thought that only double quotes could be used in tag attributes. Because of your comment, decided to look it up. According to HTML spec, single quote can be used for that purpose as well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
text not displaying correctly in OpenOffice Mikesoft Linux - Software 1 02-19-2006 07:01 PM
TTFT LCD screen on WinBook not displaying correctly. Renifer Linux - Laptop and Netbook 9 10-19-2005 01:41 PM
windows not displaying correctly zchoyt Linux - General 1 03-19-2005 10:37 PM
VIM 6.3.13 Colors not displaying correctly schurt Fedora 0 07-22-2004 05:08 PM
Battery not displaying correctly in KDE3 metalaid Linux - Software 3 01-22-2004 11:29 AM


All times are GMT -5. The time now is 03:06 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration