/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { escape } from 'vs/base/common/strings'; export function renderCodicons(text: string): string { return escape(text); } export class CodiconLabel { private _container: HTMLElement; constructor(container: HTMLElement) { this._container = container; } set text(text: string) { this._container.innerHTML = renderCodicons(text || ''); } }