You need to sign in to do that
Don't have an account?
CB312
Unterminated string literal - removing the new line from a Long Text Area '/n'
Hey All,
Is there a way to remove the new line character '/n' from a Long Text Area in Apex? I am trying to pass to a google fusion obj and they don't handle the '/n' character and throw an exception. Any idea how I can take a long text area(we will call it LT__c) and have it remove the new line characters? Is this supported nativly in apex?
Thanks!
-Chris
You should be able to use the replaceAll method to accomplish that:
string = string.unescapeJava();