我以bbcode格式使用此rte。
http://markitup.jaysalvat.com/home/
提交textarea后,我用bbcode格式保存它。
但我需要两件事。
答案 0 :(得分:0)
Convert in PHP ...
有很多方法可以转换BBCode。如果你想摆脱BBCode,你将不得不使用正则表达式删除所有[]块。像这样的事情:
return preg_replace('|[[\/\!]*?[^\[\]]*?]|si','', $yourblockofbbcode);
(source)