raymondfish
Member
I have created a script that gets the lyrics of the playing song and send the lyrics through private chat. The HTML returned for the lyrics are multi-line as seen below.
HTML Lyric Example
The HTML codes uses <br/> to seperate each line. I have tried replacing these with \n, \r, \n\n, and others to figure out how I can send a chat message that looks the same. FYI, when using \n it sends a new message therefore flooding the chat and gives error so that is not the answer.
In Teamspeak itself, you can SHFT-ENTER to write on a new line without it sending the message. If the above is pasted into a Teamspeak chat box, it looks fine.
So, my question is what I need to replace <br/> with (character? character code?) to have same output.
HTML Lyric Example
Code:
This will be the day
That u will hear me say
That I will never run away
I am here for u
Love is meant for two
Now tell me what u're gonna do
The HTML codes uses <br/> to seperate each line. I have tried replacing these with \n, \r, \n\n, and others to figure out how I can send a chat message that looks the same. FYI, when using \n it sends a new message therefore flooding the chat and gives error so that is not the answer.
In Teamspeak itself, you can SHFT-ENTER to write on a new line without it sending the message. If the above is pasted into a Teamspeak chat box, it looks fine.
So, my question is what I need to replace <br/> with (character? character code?) to have same output.