java - Processing newline character in function jquery.i18n.prop() -


jquery code follows:

alert(jquery.i18n.prop('message.key')); 

the value specified in properties file as:

message.key=value after newline\nvalue here 

following output expected javascript alert():

value after newline value here 

the actual output is:

value after newline\nvalue here 

i tried different methods changing value stored in properties file to:

  • message.key=value after newline\\nvalue here
  • message.key=value after newline\u000dvalue here

but doesn't work. displays "\\n" instead

what changes required made desired output?

edit: following code gives desired output in javascript:

alert('value after newline\nvalue here') 

but need use jquery.i18n.properties localization

i'm pretty sure can go (the plugin supports multi-line properties):

message.key1=value after newline value here message.key2=next value 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -