News

Parsedown v1.7.0 is released

Published
Parsedown v1.7.0 is released image

Since Laravel 5.4 the framework has included a markdown parser called Parsedown. It’s used internally for the markdown emails, but you can also easily use it in your apps.

The Parsedown team recently released v1.7.0 to address an XSS issue that caused the SensioLabs Composer vulnerability check to fail.

Laravel 5.6.7 was also just released that includes an update to the Parsedown dependency. Under rare circumstances, it could have some Markdown parsing side effects in your app, but you can always go back to the way it was before by setting the following:

$parsedown->setSafeMode(true);

In both cases, their readme recommends using a sanitizer, like HTML Purifier, when dealing with untrusted content.

To get this latest version just run a composer update on your Laravel app and you’ll be all set.

Eric L. Barnes photo

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Filed in

Sponsored

masteringlaravel logo
Laravel Code Review

Get expert guidance in a few days with a Laravel code review

Visit Laravel Code Review

The latest

View all →
Validate and Convert HEIC Images in Laravel image

Validate and Convert HEIC Images in Laravel

Read article
Saga Lara Flow: Durable Workflows and Compensating Transactions on Laravel Queues image

Saga Lara Flow: Durable Workflows and Compensating Transactions on Laravel Queues

Read article
Reject Unexpected Array Keys with Laravel Validation image

Reject Unexpected Array Keys with Laravel Validation

Read article
Major performance improvements & security patches for Filament v4.12 and v5.7! image

Major performance improvements & security patches for Filament v4.12 and v5.7!

Read article
Laravel Boost Project Rules: Teach Agents Your Conventions image

Laravel Boost Project Rules: Teach Agents Your Conventions

Read article
Extract an Image's Dominant Color in Laravel image

Extract an Image's Dominant Color in Laravel

Read article