code: public void writeText(char[] buf, int offset, int length)
    {
      closeElementIfNeeded(false);
      writeIndentIfNewLine();
      _strategy.writeText(this, buf, offset, length);
    }
docs: Close an open element (if any), then write with escaping as needed.