Jump to content

Howto encode newline characters in strings used as property values in a configuration block?


Ronald Brill

Recommended Posts

I m using the Spotfire WebPlayer API and i like to set a document property (of type string) to a value.

This works fine using a configuration block as parameter for the createApplication() API.

Something like this: myDocumentProperty="ab c";

But this fails if the string contains a newline.

Setting the same property using the doc.setDocumentProperty(propName, value); javascript works fine with strings containing newline characters.

What is the correct way to encode newlines for strings in the configuration block?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...