Break text in DIV after 5 linies of text
Hello folks,
Does anyone have a possible solution for this problem: ?
I have a DIV with a text in it. But I have to break the text into to variables after 5 linies: fx:
"lorem ipsum
<br>
lorim upsam fdfs sdæl
<br>
--divide--
<br>
lorem ipsum lorem ipsum"
I can not use .length because the <br> starts a new line. I can not find a solution the use a "line-counter".
Does anyone know how to do this?