1
|
import { ParseTreeResult } from './parser';
|
2
|
export declare const PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
3
|
/**
|
4
|
* Angular Dart introduced &ngsp; as a placeholder for non-removable space, see:
|
5
|
* https://github.com/dart-lang/angular/blob/0bb611387d29d65b5af7f9d2515ab571fd3fbee4/_tests/test/compiler/preserve_whitespace_test.dart#L25-L32
|
6
|
* In Angular Dart &ngsp; is converted to the 0xE500 PUA (Private Use Areas) unicode character
|
7
|
* and later on replaced by a space. We are re-implementing the same idea here.
|
8
|
*/
|
9
|
export declare function replaceNgsp(value: string): string;
|
10
|
export declare function removeWhitespaces(htmlAstWithErrors: ParseTreeResult): ParseTreeResult;
|