FOSCommentBundle功能包:实现BBCode解析器
原文出处:9c-using_a_bbcode_parser.md
原文作者:FriendsOfSymfony
授权许可:创作共用协议
翻译人员:FireHare
校对人员:
适用版本:FOSCommentBundle 2.0.5
文章状态:草译阶段
Step 9c: Implementing a BBCode parser
There are multiple BBCode parsers available for PHP, but are generally considered slow when implemented in pure PHP.
PHP有多种BBCode解析器可用,但通常认为使用纯PHP实现(解析)缓慢。
An example BBCode bridge is provided that uses StringParser_BBCode, available from GitHub which is a git mirror of the library written by Christian Seiler located here.
这里是Christian Seiler使用StringParser_BBCode编写的一个BBCode桥示例,这是一个放置在GitHub的git镜像库。
For details on the configuration, look at this gist. It requires ExerciseHTMLPurifier bundle being installed but does not require the HTMLPurifier bridge to be defined.
关于更多配置细节,请参见 gist。它要求安装ExerciseHTMLPurifier功能包,但不要求定义HTMLPurifier 桥。
That is it!
Return to the index.
返回到指南索引页。
转载于:https://blog.51cto.com/firehare/1259394