All Notable changes to golonka\BBCodeParser
will be documented in this file
- You can now strip all BBCode tags by using the
stripBBCodeTags
function.
- Made
parseCaseSensitive
andparseCaseInsensitive
functions to make parsing more readable.
- Using PSR-4 instead of PSR-0
- Moved the
arrayOnly
andarrayExcept
functions into a trait - Minimum supported PHP version bumped to 5.4
- Renamed some tag names, mostly making them all lowercase
underLine -> underline
lineThrough -> linethrough
fontSize -> size
fontColor -> color
namedQuote -> namedquote
namedQuote -> namedquote
namedLink -> namedlink
orderedListNumerical -> orderedlistnumerical
orderedListAlpha -> orderedlistalpha
unorderedList -> unorderedlist
listItem -> listitem
- The
iterate
property is removed. Unneeded after improvements in parsing method. - Removed deprecated tags
[ul]
and[ol]
- Optional parameter enables or disables case insensitivity. Disabled by default.
- The only/except functionally have been broken since like 1.1, but now it´s working. Better late then never!
- A new iterate key is added to tags that typically could contain more tags of the same kind, like quotes.
- Problem where tags of the same kind would just parse the top level.
- Fixed a problem where if a tag had a line break in them they wouldn't parse.
- Improved most regex matches by removing unnecessary greediness.
- Better syntax for lists.
- Support for custom bbcode tags.
Released the package.