Skip to content

Garagist/Garagist.Plaintext

Repository files navigation

Garagist.Plaintext

Latest stable version GitHub stars GitHub watchers GitHub license GitHub issues GitHub forks

With Garagist.Plaintext you can convert any HTML or MJML document to plaintext. Useful for newsletter generation.

Installation

Add the package in your site package:

composer require --no-update garagist/plaintext

The run composer update in your project root.

Special CSS classes

To hide an element, add the class plaintext:hidden to remove it from the plaintext output. To mark an MJML element as headline (aka convert to uppercase), add the css-class plaintext:uppercase.