UNPKG

@angular-package/prism

Version:
13 lines (12 loc) 468 B
/// <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); }