hugo-levet / strapi-php-rich-text-parser
A PHP parser for Strapi Rich Text fields
v1.1.1
2024-09-03 22:10 UTC
Requires (Dev)
- phpunit/phpunit: ^11.3
README
A PHP parser for Strapi Rich Text fields
Usage
Get datas from strapi api in StdClass format and pass it to the parser
use HugoLevet\StrapiPhpRichTextParser\RichTextParser; $html_content = RichTextParser::jsonToHtml($content);
Environment variables
Make sure to set the environment variable STRAPI_URL
with the URL of the Strapi API you are using