1.4.0 • Published 10 years ago
phoenix-bbcode v1.4.0
Renders BBCode.
var html = bbcode.render('[b]Hello, world![/b]');
bbcode.render
takes an optional second argument, options
,
an object whose properties alter the renderer’s behaviour in some way.
The available options are:
Option name | Description | Default |
---|---|---|
automaticParagraphs | Whether <p> elements should be created automatically based on line breaks, as in Markdown. | false |