我尝试从文本区域获取数据,提交表单时。
<?php
echo form_open_multipart('start/create','class="build_form"');
...
echo form_textarea('proDetail','','id="proDetail"');
...
echo form_submit('submit','Save','class="btn btn-primary"');
echo form_close();
?>
尝试在此函数中显示数据。
public function create()
{
echo print_r($this->input->post('proDetail'));
}
它给了我来自 textarea 的数据,但是在 textarea 中查看时却不一样。
<p><img class="fr-draggable fr-fir fr-dii" style="width: 300px;" src="http://localhost/siamfunding/img/users/upload/3a5e29ad7b5c64b16a97c56ce2a006cb7f66c7e3.jpg"></p>
<h1 style="text-align: center;">
<strong>asdasddadasdddd</strong>
</h1>
<p style="margin-left: 20px;">qwdqwdasdasasdwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww</p>
<p style="">daaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas</p>
<p style="">dddddddddddddddddddddddddddddddddddddddddddddddddddddddddd</p>
<p style="">aaaaaaaaaaaaaaaad</p>
<p>
<img class="fr-draggable fr-fir fr-dii" xss="removed" src="http://localhost/siamfunding/img/users/upload/3a5e29ad7b5c64b16a97c56ce2a006cb7f66c7e3.jpg">
</p>
<h1 xss="removed">
<strong>asdasddadasdddd</strong>
</h1>
<p xss="removed">qwdqwdasdasasdwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww</p>
<p xss="removed">daaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas</p>
<p xss="removed">dddddddddddddddddddddddddddddddddddddddddddddddddddddddddd</p>
<p xss="removed">aaaaaaaaaaaaaaaad</p>
<p xss="removed">
<br>
</p>
发生了什么,我怎样才能让它看起来像在文本区域。
Ps.我尝试在页面中导入 css 和 Jquery。这不工作。