Simple BBparser in PHP that lets you replace content outside tags

前端 未结 2 1479
北荒
北荒 2021-01-27 09:34

I\'m trying to parse strings that represent source code, something like this:

[code lang=\"html\"]
  <div>stuff</div>
[/code]
2条回答
  •  暖寄归人
    2021-01-27 10:00

    HTML Purifier http://htmlpurifier.org/

    But you are facing same issues just like in your 20 previous questions.

提交回复
热议问题