frontkom/fs-info-transformer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

frontkom/fs-info-transformer

最新稳定版本:0.0.1

Composer 安装命令:

composer require frontkom/fs-info-transformer

包简介

Transform data coming from FS to regular and usable HTML

README 文档

README

Transform data coming from FS to regular and usable HTML

Test

Installation

Install with composer.

composer require frontkom/fs-info-transformer

Usage

use Frontkom\FsInfoTransformer\Transformer;

$transformer = new Transformer();
$text = 'Vi viser til <webLink><href>https://www.example.com</href><linkName>gjeldende forskrift og tilhørende retningslinjer.</linkName></webLink>';
$html = $transformer->transform($text);
echo $html;
// Will output
// Vi viser til <a rel="nofollow" href="https://www.example.com">gjeldende forskrift og tilhørende retningslinjer.</a>

API

transform(string $text): string

Transforms the given text to HTML.

This method will run all the most common transformations on the text, including most of the ones below. For a direct link to read the implementation, see the method in the source code directly.

replaceEmptyParagraphs(string $text): string

processBulletedLists(string $text): string

processNumberedLists(string $text): string

replaceTags(string $data, $tag, $replacement_tag, $keep_self_closing_tags = false): string

processWeblinks(string $data, bool $nofollow = true): string

License

GPL-2.0-or-later

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2024-09-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固