title: jquery .text() undetermined string literal
body: <p>I'm playing around with codeigniter and jquery, and I was trying to take some text from mysql and insert it into a <code>&lt;P&gt;</code> tag. The method works when I just say "hello world", but when it grabs the text form SQL and inserts it I get a undetermined string literal error. This is my code:</p>
  
  <pre><code>$('#register').click(function(){
    &lt;?
      $query = $this-&gt;db-&gt;get_where('eula', array('id'=&gt;'1'));
      $result = $query-&gt;result();
      $eula = (string)$result[0]-&gt;eula;
      echo '$(\'#eulaText\').append(\''.$eula.'\'\);';
    ?&gt;
      console.log("$string=".$string);
  });
  </code></pre>
  
  <p>I have a lorum ipsum string in sql that I want to insert into the page.</p>
  
  <p>I could use some advice, and I apologize for the sloppy code.</p>