Skip to content

Commit

Permalink
Newline parser addon
Browse files Browse the repository at this point in the history
  • Loading branch information
Genert Org committed Jul 18, 2017
1 parent a8c7b85 commit c9b012f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file.

The project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.0.3] - 2017-07-18
### Added
- Newline parser

## [1.0.2] - 2017-07-18
### Changed
- Fix add parser issue having missing content.

## [1.0.1] - 2017-07-17
### Added
- Add parser functionality.
Expand Down
5 changes: 5 additions & 0 deletions src/Parser/BBCodeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ final class BBCodeParser extends Parser {
'replace' => '<td>$1</td>',
'content' => '$1',
],
'linebreak' => [
'pattern' => '/\r\n/',
'replace' => '<br />',
'content' => '',
],
];

public function stripTags(string $source): string
Expand Down

0 comments on commit c9b012f

Please sign in to comment.