e&gt;{{ list | json }}&lt;/pre&gt;</code></pre>
    </div>
  
    <div class="runnable-example-file" 
      name="protractor.js"
      type="protractor"
      language="js">
      <pre><code>it(&quot;should split the text by newlines&quot;, function() {&#10;  var listInput = element(by.model(&#39;list&#39;));&#10;  var output = element(by.binding(&#39;list | json&#39;));&#10;  listInput.sendKeys(&#39;abc\ndef\nghi&#39;);&#10;  expect(output.getText()).toContain(&#39;[\n  &quot;abc&quot;,\n  &quot;def&quot;,