@core_helper
def remove_linebreaks(string):
 return unicode(string).replace('\n', '')

@ core_helper def remove_linebreaks ( string ) : return unicode ( string ) . replace ( '\n' , '' )
remove linebreaks from string to make it usable in javascript .