This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I simply want to take two strings, a label and it's value, via a JSON call and concatenate them (functionally) such as this:
If I attempt to do this:
the process will escape the control characters and I literally get the bold control characters in the resulting output.
Okay that's a pretty ugly solution anyway, so I tried using <div> tags and adding a class attribute that would apply the bold style through the css, so I wind up with this:
which works fine for applying the style, but it breaks the paragraph at the </div> tag and I would prefer it on one line. I guess I could go through the pain of generating a two column table to do this, but there must be some simple solution for this as a paragraph text node?