I am using some facebook post to wall JS, and the information for the post is echoed via php, but i get this error in the console:
SyntaxError: unterminated string literal
description: 'Well, personal favorite in the following order.<br />
This is the row for the API call
description: '<?php echo $info['definition'] ?>'
and this is $info['definition'] string in the SQL database:
Well, personal favorite in the following order.
1. A stalkers dream come true
2. The reason most work are never done on time.
See what I mean with the examples.
If i use some other string, and type it in directly, it dosnt prompt the script error, how do i escape the string and make it work in the API call?