42 Star 132 Fork 40

山东小木 / html2wxml4J

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

html2wxml4J

项目介绍

微信小程序端 html2wxml 转换接口 Java版 微信小程序Java版富文本渲染解决方案 基于JFinal+Jsoup+FastJson

实现功能

目前仅实现解析Html并转换成JSON,将生成的JSON通过接口访问返回给微信小程序端

微信小程序端使用html2wxml组件版 按照html2wxml教程配置即可

html大部分标签已经支持,Video、Audio标签已经支持

HtmlToJson.java 核心工具类 使用FastJson

Pre标签里的代码支持代码着色高亮显示

输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明

第三方库

Html解析:Jsoup 接口编写:JFinal Json转换:FastJson

安装和使用

部署到服务器,按照html2wxml提供的组件版 使用方式只需要修改接口地址为部署项目的访问地址就可以了 输入图片说明

支持本项目

输入图片说明

MIT License Copyright (c) 2020 山东小木 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

微信小程序端 html2wxml 转换接口 Java版小程序富文本渲染解决方案 基于JFinal+Jsoup+FastJson 展开 收起
Java 等 4 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/909854136/html2wxml4J.git
git@gitee.com:909854136/html2wxml4J.git
909854136
html2wxml4J
html2wxml4J
master

搜索帮助