Skip to content

Commit

Permalink
release: doc update and 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
genert committed Aug 13, 2018
1 parent c75282c commit bf20160
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ $bbCode->addParser(
$bbCode->convertToHtml('[link target=www.yourlinkhere.com]Text to be displayed[/link].');
```

### `addHtmlParser(string $name, string $pattern, string $replace, string $content)`
Add HTML parser to translate pattern to desired one.

See `addParser` for example code.

### `addLinebreakParser()`

Adds linebreak parser to BBCode parsers list to convert newlines to `<br />` in HTML.
Expand Down

0 comments on commit bf20160

Please sign in to comment.