Text in view randomly truncated
<p>I'm using CakePHP2 to display some datas and retrieve it with an AngularJS app.
In my controller I set a <code>$data</code> and a custom view like this :</p>

<pre><code>$this-&gt;layout = null;
$data = "HELLO WORLD ! THE SKY IS BLUE.";
$this-&gt;set('data', $data);
$this-&gt;render('/Elements/customview');
</code></pre>

<p>In my <code>customview.ctp</code> I have just a <code>echo $data;</code></p>

<p>The problem is that in my browser, I got this :</p>

<pre><code>HELLO WORLD ! THE S
</code></pre>

<p>The text is truncated for no reason.</p>

<p>If I change the <code>$data</code> to <code>HELLO WORLD !</code>, in the view I can only see <code>HE</code></p>

<p>Have you an idea about why my text is randomly truncated like that ? </p>