https://github.com/angular/angular
Raw File
Tip revision: b91b9efc918cf50928cf0ba25437142fc05c5f93 authored by Miško Hevery on 13 June 2018, 22:00:28 UTC
release: cut the v6.0.5 release
Tip revision: b91b9ef
html_parser.ts
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

import {getHtmlTagDefinition} from './html_tags';
import {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from './interpolation_config';
import {ParseTreeResult, Parser} from './parser';

export {ParseTreeResult, TreeError} from './parser';

export class HtmlParser extends Parser {
  constructor() { super(getHtmlTagDefinition); }

  parse(
      source: string, url: string, parseExpansionForms: boolean = false,
      interpolationConfig: InterpolationConfig = DEFAULT_INTERPOLATION_CONFIG): ParseTreeResult {
    return super.parse(source, url, parseExpansionForms, interpolationConfig);
  }
}
back to top