Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How Can I Store Bold/Italics in an HTML Field via OSLC API?

I am creating work items via the OSLC API. I have several HTML fields that I populate. I would like some of the content within those HTML fields to be in Bold. What should the XML look like to make this work? I've tried sending <b></b> tags with the angle brackets encoded as < and >, but that didn't work. If I don't encode the angle brackets, then the XML fails to parse. Is there a working syntax for this?

0 votes



One answer

Permanent link
This does work as expected. Evidently there was a mistake in my code and I was encoding my text string twice. In the first pass, the <b> was being converted to <b&ampgt;, but then on the subsequent pass that was being converted once more to <b&ampgt;. A single pass does indeed set the font to bold as expected.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 516

Question asked: May 16 '16, 1:45 p.m.

Question was seen: 3,073 times

Last updated: May 16 '16, 1:56 p.m.

Confirmation Cancel Confirm