(\r and \n represent their respective raw bytes. Do not edit the source with an editor that modifies existing newlines.)

input - <pre value="line1\rline2">line1\rline2</pre>

Rendered as:

line1
line2

input - <pre value="line1\nline2">line1\nline2</pre>

Rendered as:

line1
line2

input - <pre value="line1\r\nline2">line1\r\nline2</pre>

Rendered as:

line1
line2

input <pre value="line1\n\rline3">line1\n\rline3</pre>

Rendered as:

line1

line3

input - <pre value="line1&#13;line2">line1&#13;line2</pre>

Rendered as:

line1
line2

input - <pre value="line1&#10;line2">line1&#10;line2</pre>

Rendered as:

line1
line2

input - <pre value="line1&#13;&#10;line2">line1&#13;&#10;line2</pre>

Rendered as:

line1
line2

input - <pre value="line1&#10;&#13;line3">line1&#10;&#13;line3</pre>

Rendered as:

line1

line3

input - <pre value="line1&#x0D;line2">line1&#x0D;line2</pre>

Rendered as:

line1
line2

input - <pre value="line1&#x0A;line2">line1&#x0A;line2</pre>

Rendered as:

line1
line2

input - <pre value="line1&#x0D;&#x0A;line2">line1&#x0D;&#x0A;line2</pre>

Rendered as:

line1
line2

input - <pre value="line1&#x0A;&#x0D;line3">line1&#x0A;&#x0D;line3</pre>

Rendered as:

line1

line3