New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@deepjs/html-parser

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deepjs/html-parser

html-parser for uni-app

latest
npmnpm
Version
0.2.9
Version published
Maintainers
1
Created
Source

html-parser

将 HTML String转化为 nodes 数组

独立包,无依赖,语义化,使用简单

使用

import htmlParser from '@deepjs/html-parser';

const htmlStr = '<p style="color: red; text-align: center;">这是<strong>简单</strong>富文本</p>'
const htmlNodes = htmlParser(htmlStr)

来源:

  • https://github.com/dcloudio/hello-uniapp/blob/master/common/html-parser.js

Keywords

html-parser

FAQs

Package last updated on 17 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts