code: public static void nl2divList (@Nullable final String sText, @Nonnull final Consumer <? super HCDiv> aTarget)
    {
      forEachLine (sText, (sLine, bLast) -> aTarget.accept (new HCDiv ().addChild (sLine)));
    }
docs: Convert the passed text to a list of &lt;div&gt; elements. Each \n is used
  to split the text into separate lines. \r characters are removed from the
  string! Empty lines are preserved except for the last line. E.g.
  <code>Hello\nworld</code> results in 2 &lt;div&gt;s:
  &lt;div&gt;Hello&lt;/div&gt; and &lt;div&gt;world&lt;/div&gt;
  
  @param sText
  The text to be split. May be <code>null</code>.
  @param aTarget
  The consumer to be invoked with every {@link HCDiv}. May not be
  <code>null</code>.