Guy Markman
Guy Markman

Reputation: 446

Is the value of <br> the same between different OSs?

I'm working on code that's reading the content of an HTML page and removes some of the lines from it. To separate different lines I currently use \n (LF, which is the default end of line in Linux) but suddenly I remembered that in Windows it's \r\n (CRLF in Windows).

In HTML we use <br> but because I read the HTML file as text, it is shown as \n.

Will it be shown in Windows as \r\n (or as the default end of line in other OSs) or will <br> always be \n?

Upvotes: 1

Views: 29

Answers (0)

Related Questions