How can I write single and double quotes in the value attribute of h:outputText
?
In US English, you must use double quotation marks. Single quotation marks are used for quotes within quotes. In UK English, it's most common to use single quotation marks, with double quotation marks for quotes within quotes, although the other way around is acceptable too.
On the keyboard You can make single quotation marks on most computers by pressing the apostrophe/quotation mark key to the left of ENTER. Double quotation marks are made on most computers by holding SHIFT and pressing the apostrophe/quotation mark key to the left of ENTER.
Quotation marks are ALWAYS used in pairs, one at the beginning of the quoted text and one at the end. The same rule applies to titles and words used in a special sense or for emphasis. Use double quotation marks (“”) around a direct quote. A direct quote is a word- for-word report of what someone else said or wrote.
Single quotation marks are produced in LaTeX using ` and ' . Double quotation marks are produced by typing `` and '' . (The `undirected double quote character " produces double right quotation marks: it should never be used where left quotation marks are required.)
This should work in both standard syntax JSPs and XML view technologies:
<h:outputText value="quote: " apostrophe: '"/>
for Double quote:
<h:outputText value=" " " />
For Single Quote:
<h:outputText value=" ' " />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With