Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Adds a parse function #184

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

lukeraymonddowning
Copy link
Contributor

Hey folks 👋

This PR exposes the parse function that was previously limited to internal tests. This allows the user to retrieve a terminal acceptable string without rendering to the console. We can then use the parse function in tandem with other console output libraries, like Laravel Prompts:

table(
  ['Name', 'Company'],
  [[parse("<span class='text-red-500'>Luke</span>"), 'Laracasts']]
);

@nunomaduro nunomaduro merged commit 9c030e6 into nunomaduro:2.x Apr 12, 2024
@lukeraymonddowning lukeraymonddowning deleted the 2.x_parse branch April 12, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants