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

uni-app html-parser

npmnpm
Version
0.1.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
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 25 Mar 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