@angular-package/prism
Version:
Simple Angular 5+ Prism highlighter module.
13 lines (12 loc) • 468 B
TypeScript
/// <reference path="../typings/index.d.ts" />
import { ElementRef } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { OptionsInterface } from './prism.interface';
export declare class PrismService {
private sanitizer;
constructor(sanitizer: DomSanitizer);
highlight(el: ElementRef, options: OptionsInterface): void;
hooks(): any;
private escapeHtml(unsafe);
private interpolate(string, interpolation);
}