Skip to content

Commit

Permalink
README update
Browse files Browse the repository at this point in the history
  • Loading branch information
Genert Org committed Jul 14, 2017
1 parent b6cbd9c commit 7da95c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ $ composer require genert/bbcode
```

## Usage
The `genert/bbcode` library comes with functionality to convert BBCode to HTML or vice versa.

### `convertFromHtml(string $text)`
Converts BBCode to HTML and returns output as string.
Convert BBCode to HTML and returns parsed text as string.

Example:
```php
Expand All @@ -33,7 +32,7 @@ $bbCode->convertFromHtml('[b]Hello word![/b]');
```

### `convertToHtml(string $text, [$caseSensitive])`
Converts HTML to BBCode and returns output as string.
Convert HTML to BBCode and returns parsed text as string.

Example:
```php
Expand Down

0 comments on commit 7da95c2

Please sign in to comment.