Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 10 years ago.
$wysiwyg_val = 'xyz'; // your WYSIWYG input $replacements = array( array('/\n/g', "<br>"), array('/<br>/g', '[br]'), array('/\</g','<'), // and so forth. ); foreach ($replacements as $replacement) { $wysiwyg_val = preg_replace($replacement[0], $replacement[1], $wysiwyg_val); }
mixed preg_replace ( mixed $pattern , mixed $replacement , mixed $subject [, int $limit = -1 [, int &$count ]] )
所以就这样做
$subject = $POST['text']; $subject = preg_replace($pattern, $replacement, $subject); $subject = preg_replace($pattern, $replacement, $subject); ...
So just do
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
所以就这样做
So just do