Wrox Programmer Forums
|
BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8
This is the forum to discuss the Wrox book Professional CodeIgniter by Thomas Myer; ISBN: 9780470282458
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 15th, 2010, 03:12 PM
Authorized User
Points: 133, Level: 2
Points: 133, Level: 2 Points: 133, Level: 2 Points: 133, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2009
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default some < or > turned to htmlentities some not?

I create a CRUD based on your system. 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.

Could you tell me it is your Claudia's sample code system did so? Or it is codeigniter did so?

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

Thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 8: <asp:image> inside <a> & ext.CSS (pg. 274) epc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 July 12th, 2008 04:37 AM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
<marquee><b>About CHAT App. in PHP4</b></marquee> Ramkrishna PHP How-To 1 September 11th, 2004 07:01 AM
<STRONG> vs <B> and <EM> vs <I> anshul HTML Code Clinic 12 September 1st, 2004 05:22 PM
<<ASP.NET Security>>,download files in chapter 8 alaix All Other Wrox Books 1 July 24th, 2003 10:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.