joonstar
03-20-2006, 10:02 AM
The following quote contains double quotation marks.
(1) "Congratulations!"
Let's suppose I have the quote (1) above.
In order to put the quote above into an input box,
I have to surround the quote (1) above with single quotation marks like the follow because it has double quotation marks.
code
<input type="text" value='"Congratulations!"'>
browsing result
"Congratulations!"
The following quote (2) contains a single quotation mark, i.e. apostrophe.
(2) John's wife said.
Let's suppose I have the quote (2) above.
In order to put the quote above (2) into an input box,
I have to surround the quote (2) above with single quotation marks like the follow because it has a single quotation mark(apostrophe).
code
<input type="text" value="John's wife said.">
browsing result
John's wife said.
The following quote (3) contains a single quotation mark and double quotation marks together.
(3) "Congratulations!" John's wife said.
In order to put the quote above (2) into an input box,
I tried the followings.
trial (1) - surrounding with double quotation marks
<input type="text" value=""Congratulations!" John's wife said.">
browsing result(1)
nothing
trial (2) - surrounding with single quotation marks
<input type="text" value='"Congratulations!" John's wife said.'>
browsing result(2)
"Congratulations!" John
trial (3) - surrounding with no quotation mark
<input type="text" value="Congratulations!" John's wife said.>
browsing result (3)
Congratulations!
How can I get my target browsing result below?
target browsing result
"Congratulations!" John's wife said.
(1) "Congratulations!"
Let's suppose I have the quote (1) above.
In order to put the quote above into an input box,
I have to surround the quote (1) above with single quotation marks like the follow because it has double quotation marks.
code
<input type="text" value='"Congratulations!"'>
browsing result
"Congratulations!"
The following quote (2) contains a single quotation mark, i.e. apostrophe.
(2) John's wife said.
Let's suppose I have the quote (2) above.
In order to put the quote above (2) into an input box,
I have to surround the quote (2) above with single quotation marks like the follow because it has a single quotation mark(apostrophe).
code
<input type="text" value="John's wife said.">
browsing result
John's wife said.
The following quote (3) contains a single quotation mark and double quotation marks together.
(3) "Congratulations!" John's wife said.
In order to put the quote above (2) into an input box,
I tried the followings.
trial (1) - surrounding with double quotation marks
<input type="text" value=""Congratulations!" John's wife said.">
browsing result(1)
nothing
trial (2) - surrounding with single quotation marks
<input type="text" value='"Congratulations!" John's wife said.'>
browsing result(2)
"Congratulations!" John
trial (3) - surrounding with no quotation mark
<input type="text" value="Congratulations!" John's wife said.>
browsing result (3)
Congratulations!
How can I get my target browsing result below?
target browsing result
"Congratulations!" John's wife said.