yannoff/console

PosixFormatter: Pseudo-tags not rendered correctly

Closed this issue · 0 comments

Problem:

Expressions containing < chars between opening and closing pseudo-tags are not rendered correctly.

<yellow>This is rendered in yellow color !</yellow>
<yellow>Here: < The yellow pseudo-tag is not rendered </yellow>

Solution

Use str_replace instead of preg_replace, and perform a simpler replacement of all tags