ppito/contentful-html-to-rich-text
最新稳定版本:1.0.5
Composer 安装命令:
composer require ppito/contentful-html-to-rich-text
包简介
Contentful - HTML to Rich Text
README 文档
README
A library to convert basic HTML to Contentful Rich Text.
Installation
Using composer:
composer require ppito/contentful-html-to-rich-text
Usage
Basic
<?php // composer require contentful/contentful-management require __DIR__ . '/vendor/autoload.php'; $content = \Contentful\HtmlToRichText\Tool::parse("<p>Hello</p><p>Another with <strong>bold maybe?</strong></p>");
Supported
The library will convert automatically the following HTML tags :
h1h2h3h4h5h6divpulolliblockquotebrhraspanstrongbuemicodesectionfooterheadernavaside
Unsupported
The attribute HTML are not supported (id="", class="", style="", etc.)
统计信息
- 总下载量: 12.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-13