It's all about the answers!

Ask a question

How do I put less-than sign and greater-than sign in Question summary?


Taro Misaki (145417) | asked Jul 23 '15, 12:29 a.m.
edited Jul 23 '15, 12:32 a.m.
I was posting a question in Jazz.net and I put < and > in the Question summary. When it was displayed, < and > was gone. However, I can see < and > correct in question description.

Accepted answer


permanent link
Howard Hsiao (5.5k17) | answered Jul 23 '15, 12:40 a.m.
JAZZ DEVELOPER
edited Jul 23 '15, 12:49 a.m.
The less-than sign and greater-than sign will come out correctly in Question summary if
1. you use greater-than sign by itself in the Question summary
Sample question: "Is 2 > 1?"

2. you use less-than sign by itself in the Question summary
Sample question: "Is 0 < 1"?

3. you use greater-than sign followed by less-than sign in the Question summary
Sample question: "Is 2>1 and 0 < 1?"

It will disappear if you use less-than sign followed by a greater-than sign.
This is because it will be interpreted as an invalid HTML tag and then gets ignored.

For example, if you post the following in the Question summary, "< and >" will be interpreted as an invalid HTML tag and gets ignored.
Sample question: "What is between < and >?"

And the question will become

"What is between ?"

Solution:
In Question summary, use &amp;lt; in place of <, and use &amp;gt; in place of >

For example, to post the question "What is between < and >?", you need to change it to 
"What is between &amp;lt; and &amp;gt;?"

PS. In Question description, < and > can be used freely.

Taro Misaki selected this answer as the correct answer

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.