html, body, head and tags in head block automatically turn to html entities?

#1
[eluser]searain[/eluser]
I create a CRUD based on Professional CodeIgniter ISBN: 978-0-470-28245-8. When input value from form's text area like the following.

Code:
<html>
<head>
<style type="text/css">
    body,p {font-size: 13px; line-height:18px; font-family: Helvetica, sans-serif; color: #ccc; }
    body, h1, h4, p { margin:0; padding: 0; border: 0;}
    h1 {margin: 20px 0 6px 0; font-family: 'Courier New', Courier; font-size: 18px; color:#f47d33; }
    h4 {margin: 2px 0 0 0; padding: 0; font-size: 12px; font-weight: normal; color: #ccc;}
    .content {padding: 5px;}
</style>
</head>

<body>
<div class="content">
    <h1>Chonto</h1>
    <p>In 1977, Bobby Bird attempted to literally buy a friend when he adopted a chimpanzee from a South American zoo. Things did not work out as he'd planned.</p>
The values in the database turned out to be
Code:
&lt;html&gt;
&lt;head&gt;
&lt;style type="text/css"&gt;
body,p {font-size: 13px; line-height:18px; font-family: Helvetica, sans-serif; color: #ccc; }
body, h1, h4, p { margin:0; padding: 0; border: 0;}
h1 {margin: 20px 0 6px 0; font-family: 'Courier New', Courier; font-size: 18px; color:#f47d33; }
h4 {margin: 2px 0 0 0; padding: 0; font-size: 12px; font-weight: normal; color: #ccc;}
.content {padding: 5px;}
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
<div class="content">
<h1>Chonto</h1>
<p>In 1977, Bobby Bird attempted to literally buy a friend when he adopted a chimpanzee from a South American zoo. Things did not work out as he'd planned.</p>
<h4><strong>Director:</strong> Carson Mell</h4>
<h4><strong>Producer:</strong> Carson Mell</h4>
<h4><strong>Writer:</strong> Carson Mell</h4>
<h4><strong>Cast:</strong> Carson Mell</h4>
<h4><strong>Editor:</strong> Scott A. Burgess</h4>
<h4><strong>Music:</strong> Alexandra Johnstone, Barry Poage, Miles Jopling, JS Bach</h4>
</div>
&lt;/body&gt;
&lt;/html&gt;
You can see that h or p tags in the body block, they are not html entitied, but html, body and head and tags in head block are automatically html entitied.

Does codeigniter default to do so?

How can I turn off these features that automatically turn html, body, head and tags in head block to html entities?

Thanks!


Messages In This Thread
html, body, head and tags in head block automatically turn to html entities? - by El Forum - 03-16-2010, 12:13 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.