Strapi Rich Text字段的PHP解析器
github.com/hugo-levet/strapi-php-rich-text-parser
源代码
问题
安装: 4
依赖: 0
建议: 0
安全: 0
星标: 0
关注者: 1
分支: 0
公开问题: 0
Requires
None
Requires (Dev)
Suggests
Provides
Conflicts
Replaces
MIT b341b65598044b59e997eb84d491e25bc66151f7
This package is auto-updated.
Last update: 2024-09-03 22:13:41 UTC
从strapi api以StdClass格式获取数据,并将其传递给解析器
use HugoLevet\StrapiPhpRichTextParser\RichTextParser; $html_content = RichTextParser::jsonToHtml($content);
确保设置环境变量STRAPI_URL,并使用您正在使用的Strapi API的URL
STRAPI_URL