Problems with "write_file" and HTML Code - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problems with "write_file" and HTML Code (/showthread.php?tid=49445) |
Problems with "write_file" and HTML Code - El Forum - 02-20-2012 [eluser]Unknown[/eluser] Hi there, I've a problem with the "write_file" function of the File Helper. I'll try to explain: I'm currently creating a little code editor for a template system in my CMS, made with CodeIgniter. My template system has some special tags, used to replace them with dynamic content. Now, that's the problem. When I change something in the file (using CodePress as HTML Editor) I have some problems with the resulting code. Here's an example: before the edit I have: Code: <div id="logo"> and there is what I have after: Code: <div id="logo"> I think this is a special characters related problem, considering also that in the final saved file I can see things like this: Before: Code: <html> After: i cannot see < or > symbols, in the code I find the &(less than) or &(greater than) equivalent. That's all, hope I was clear in my speech. Anyone can help me? Thanks for everything! |