You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

lezer-html

Package Overview
Dependencies
1
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

lezer-html

lezer-based HTML grammar


Version published
Maintainers
1
Created

Changelog

Source

0.13.6 (2021-06-16)

Bug fixes

Add a rule for invalid & syntax to avoid error-recovery around stray ampersands.

Readme

Source

lezer-html

This is an HTML grammar for the lezer parser system.

The code is licensed under an MIT license.

Interface

This package exports two bindings:

parser: Parser

The parser instance for the basic HTML grammar.

configureNesting(tags: {
tag: string,
attrs?: (attrs: {[attr: string]: string}) => boolean,
parser: {startParse: (input: Input, startPos: number, context: ParseContext) => PartialParse},
}[]): {[name: string]: NestedParser}

Create a nested parser config object which overrides the way the content of some tags is parsed. Each override is an object with a tag property holding the (lower case) tag name to override, and an optional attrs predicate that, if given, has to return true for the tag's attributes for this override to apply.

The parser property describes the way the tag's content is parsed.

FAQs

Package last updated on 16 Jun 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc