Th3Boss Posted March 25, 2013 Share Posted March 25, 2013 Im trying to get it to place a line break after each output function generateTemplate() { output = '$' + templateName + ';' + "<br>"; output += '$ship=' + fit.shipName + ';' + "<br>"; output += '$shipTypeID=' + fit.shipTypeID + ';' + "<br>"; output += '$fitName=' + fit.name + ';' + "<br>"; output += '$fitID=' + fit.fitID + ';' + "<br>"; } output is displayed in a textarea How do I do this? Link to comment https://forums.phpfreaks.com/topic/276150-line-break-help/ Share on other sites More sharing options...
haku Posted March 26, 2013 Share Posted March 26, 2013 output = '$' + templateName + ';' + "\\\n"; Link to comment https://forums.phpfreaks.com/topic/276150-line-break-help/#findComment-1421056 Share on other sites More sharing options...
Th3Boss Posted March 26, 2013 Author Share Posted March 26, 2013 output = '$' + templateName + ';' + "\\\n"; worked with "\n" It left a \ visible the other way. Thanks! Link to comment https://forums.phpfreaks.com/topic/276150-line-break-help/#findComment-1421059 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.