承接 ppito/contentful-html-to-rich-text 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 :

  • h1
  • h2
  • h3
  • h4
  • h5
  • h6
  • div
  • p
  • ul
  • ol
  • li
  • blockquote
  • br
  • hr
  • a
  • span
  • strong
  • b
  • u
  • em
  • i
  • code
  • section
  • footer
  • header
  • nav
  • aside

Unsupported

The attribute HTML are not supported (id="", class="", style="", etc.)

统计信息

  • 总下载量: 12.12k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-13