Socket
Socket
Sign inDemoInstall

angular-html-parser

Package Overview
Dependencies
1
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

CHANGELOG.md

5

lib/angular-html-parser/src/index.d.ts
import { TagContentType } from '../../compiler/src/ml_parser/tags.js';
import { ParseTreeResult } from "../../compiler/src/ml_parser/parser.js";
export { TagContentType };
export interface ParseOptions {

@@ -35,1 +34,5 @@ /**

export declare function parse(input: string, options?: ParseOptions): ParseTreeResult;
export { TagContentType };
export { RecursiveVisitor, visitAll, } from "../../compiler/src/ml_parser/ast.js";
export { ParseSourceSpan, ParseLocation, ParseSourceFile, } from "../../compiler/src/parse_util.js";
export { getHtmlTagDefinition } from "../../compiler/src/ml_parser/html_tags.js";

6

lib/angular-html-parser/src/index.js

@@ -10,3 +10,2 @@ import { HtmlParser } from "../../compiler/src/ml_parser/html_parser.js";

};
export { TagContentType };
export function parse(input, options = {}) {

@@ -21,1 +20,6 @@ const { canSelfClose = false, allowHtmComponentClosingTags = false, isTagNameCaseSensitive = false, getTagContentType, } = options;

}
// For prettier
export { TagContentType };
export { RecursiveVisitor, visitAll, } from "../../compiler/src/ml_parser/ast.js";
export { ParseSourceSpan, ParseLocation, ParseSourceFile, } from "../../compiler/src/parse_util.js";
export { getHtmlTagDefinition } from "../../compiler/src/ml_parser/html_tags.js";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ export declare class ParseLocation {

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

{
"name": "angular-html-parser",
"version": "2.0.0",
"version": "2.1.0",
"description": "A HTML parser extracted from Angular with some modifications",

@@ -5,0 +5,0 @@ "main": "lib/angular-html-parser/src/index.js",

@@ -22,5 +22,15 @@ # angular-html-parser

```js
const ngHtmlParser = require('angular-html-parser');
import {parse} from 'angular-html-parser';
const {rootNodes, errors} = ngHtmlParser.parse('<div>hello world</div>');
const {rootNodes, errors} = parse(`
<!DOCTYPE html>
<html>
<head>
<title>Hello world!</title>
</head>
<body>
<div>Hello world!</div>
</body>
</html>
`);
```

@@ -27,0 +37,0 @@

@@ -0,0 +0,0 @@ This project incorporates third party material from the projects listed below.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc