Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write single and double quotes in h:outputText

Tags:

jsf

jsf-2

How can I write single and double quotes in the value attribute of h:outputText?

like image 972
Adnan Avatar asked Jun 15 '11 07:06

Adnan


People also ask

How do you use single and double quotation marks?

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.

How do you type a single quotation mark?

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.

Where do you put the two quotation marks?

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.

How do you write double quotes in LaTeX?

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.)


2 Answers

This should work in both standard syntax JSPs and XML view technologies:

<h:outputText value="quote: &quot; apostrophe: &apos;"/>
like image 107
McDowell Avatar answered Sep 28 '22 22:09

McDowell


for Double quote:

<h:outputText value=" &#34; " />

For Single Quote:

<h:outputText value=" &#39; " />
like image 44
Maddy Avatar answered Sep 28 '22 23:09

Maddy