title: Keep two first text lines, remove everything else
body: <p>In a <code>&lt;div&gt;</code> I have some text. Because of the <code>div</code>-width the text is shown in multiple lines. E.g. the following code:</p>
  
  <pre><code>&lt;div&gt;text01 text02 text03 text04 text05 text06 text07 text08 text09 text10 text11 text12&lt;/div&gt;
  </code></pre>
  
  <p>might be shown in e.g. four lines:</p>
  
  <pre><code>text01 text02 text03
  text04 text05 text06
  text07 text08 text09
  text10 text11 text12
  </code></pre>
  
  <p>I wish to keep only the first two lines, and if further lines are present they must be removed and replaced with the text line <code>...</code> as a new (therefore third) text line.<br>
  In other words: I wish to find the second line break (if present) and replace all text after this point with a text line saying <code>...</code>.</p>
  
  <p>So, if I have two lines of text, nothing is changed:</p>
  
  <pre><code>text text text
  text text text
  </code></pre>
  
  <p>But if I have more than two lines like above, I will get this:</p>
  
  <pre><code>text01 text02 text03
  text04 text05 text06
  ...
  </code></pre>
  
  <p>Any good advice?</p>