1

I downloaded the markitup and followed their instructions and downloaded the BBcode parser (called Recruiting Parser).

In the documentation it said to support only a few of the code tags and it seems that it doesn't support others e.g. [code][/code].

require_once("parser.php");

When I do this:

$parser = new parser;
$parsed = $parser->p($threadContent);

I get some but not all code tags transferred to HTML. [list] and [preview] for example don't.

Is there a better parser that will transfer all the tags, to HTML mark up?

6
  • For the love of God, please don't use BBCode: stackoverflow.com/questions/3788959/… Commented Nov 13, 2011 at 16:09
  • PHP has a native BBCode Parser Commented Nov 13, 2011 at 16:10
  • 1
    possible duplicate of Best Way to Parse BBCode Commented Nov 13, 2011 at 16:11
  • any idea how can I use the preview button, cause it isnt working now Commented Nov 13, 2011 at 16:24
  • @NullUserException, BBcodes are very well known and do their job just fine. So why should we refuse them? Commented Jan 22, 2018 at 20:58

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.