IBM Support

IBM Rational Change: Issues with single and double quotes in RTF fields

Troubleshooting


Problem

Change 5.2.0.5 changes the way single and double-quotes are interpreted in RTF fields (such as "WSLET") at the time Javascript is produced. This can cause issues in your customized code when your browser interprets the produced code.

Symptom

Try to use a variable as below with an attribute MY_ATTRIBUTE of type CCM_EXTENDED_TEXT:


var currentSituation  = "<!-- WSLET CODE=PTText --><!-- PARAM NAME=CCM_STRING VALUE='MY_ATTRIBUTE' --><!-- /WSLET -->";


Then, give it a value as below (please note the presence of two "single quote" characters in the sentence):
===
It's an example of how single quotes' interpretation causes trouble.
===

The code produced can eventually cause issues on the final page when it's rendered in a browser (errors on the page, incorrect display, etcetera.)



[{"Product":{"code":"SSYQQ2","label":"Rational Change"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF027","label":"Solaris"},{"code":"PF016","label":"Linux"},{"code":"PF002","label":"AIX"}],"Version":"5.2.0.5;5.2.0.6;5.2.0.7","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
13 November 2019

UID

swg21618941