Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 jHtmlArea 作为 Web 显示输出的文本输入,不幸的是,当在输出页面上回显时,放入文本区域的任何图像或链接在引号前用 \ 损坏。
有没有蚂蚁的方式来编码这个不同的?
输入
$text = preg_replace("/\r\n/", '', $_POST[$textIndex]) . PHP_EOL;
回声是
<?php if ($text) : // text ?> <div><?php echo $text; ?></div>
找到了答案。这真的很简单。只需将输出更改为 echostripslashes($text)
stripslashes($text)