Here is my code output with passing the data to the console:
console.log('
FUN, FRIENDLY, * New PRIVATE PARTY ROOM with stage, 70" Satellite TV, comfortable lounge seating
Exciting Bachelor Parties, Unique Surprise Birthday Parties, Divorce, Retirement....You Own IT!
Party includes: 90 Minutes Open Bar, Dedicated Waitress, complimentary Dance of choice for the guest of honor, '.trim());
My result is: SyntaxError: unterminated string literal.
I understand that this is an issue with breaking new lines in javascript and i need to use \ but this is dynamic data as follows:
var b = '<xsl:value-of select="./description"/>'; <--- the output above gets assigned here
So, how do I resolve this issue? The application is not outputting this text on the log. its showing blank Should I Replace \n with \ ?
Not quite sure of the solution.