Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 830 Bytes

File metadata and controls

36 lines (23 loc) · 830 Bytes

Parser BBcode

Continuous Integration

Example:

<?php
use Xbbcode\Xbbcode;

$text = 'Это [b]пример[/b] работы парсера [url=https://github.com/Gemorroj/xBBCode]xBBCode[/url].';
$xbbcode = new Xbbcode();
$xbbcode->parse($text);

echo $xbbcode->getHtml();

Requirements:

  • PHP >= 8.2

Security Note:

  • Geshi has security problem GeSHi/geshi-1.0#159
  • This doesn't seem relevant for XbbCode.
  • To avoid composer blocking, use --no-security-blocking option.

Installation:

composer require gemorroj/xbbcode --no-security-blocking

License:

  • GNU GPL v 2