Welcome Guest, Not a member yet? Register   Sign In
readfile
#1

[eluser]jur[/eluser]
Hi,

Im doing online editor to my site.,
I use read_file function and put it's output inside a textarea. Its work fine.

but when the the file to be edited in my textarea has a <textarea> tag,
its not functioning well at all.

can anyone help? Thanks! Smile



//Controller
$data['script'] = read_file(register.php); /*register.php has a textarea tag inside*/
$this->load->vars($data);
$this->load->view('editor.php', $data);



//View (editor.php)
<textarea>
<?php echo $script; ?>
</textarea>
#2

[eluser]jpijper[/eluser]
This probably has to do with the interpretation of < and > symbols within the textarea. Read this: http://forums.mozillazine.org/viewtopic....e2c17e1574.

Jan Roelof
#3

[eluser]Cristian Gilè[/eluser]
htmlspecialchars

Cristian Gilè
#4

[eluser]jur[/eluser]
hi again ,

thanks jpijper and Cristian Gilè. Its rocking Good now! hehe




Theme © iAndrew 2016 - Forum software by © MyBB