This project is not covered by Drupal’s security advisory policy.
This module adds the inline_css filter to Drupal's Twig environment. This is useful for inline CSS inside of emails, PDFs, or just your regular markup.
If not installed via composer, you'll need the library.
composer require twig/cssinliner-extra
Example:
{% apply inline_css %}
<html>
<head>
<style>
p { color: red; }
</style>
</head>
<body>
<p>Hello CSS!</p>
</body>
</html>
{% endapply %}Supporting organizations:
Initial Development
Project information
- Project categories: Content display, Integrations
1 site reports using this module
- Created by alexandersluiter on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.