nextalys-js-helpers
Advanced tools
Comparing version
@@ -7,3 +7,3 @@ export declare class BrowserHelpers { | ||
static copyToClipboard(str: string): void; | ||
static stripHtml(html: string): string; | ||
static stripHtml(html: string, returnOriginalIfNoDocument?: boolean): string; | ||
static bindIntegerInputEvent(elem: HTMLInputElement, acceptKeys?: number[]): void; | ||
@@ -10,0 +10,0 @@ static bindPhoneInputEvent(elem: HTMLInputElement, acceptKeys?: number[]): void; |
@@ -84,5 +84,10 @@ "use strict"; | ||
}; | ||
BrowserHelpers.stripHtml = function (html) { | ||
if (!document) | ||
BrowserHelpers.stripHtml = function (html, returnOriginalIfNoDocument) { | ||
if (returnOriginalIfNoDocument === void 0) { returnOriginalIfNoDocument = false; } | ||
if (typeof document === 'undefined') { | ||
if (returnOriginalIfNoDocument) { | ||
return html; | ||
} | ||
return ''; | ||
} | ||
var tmp = document.createElement("DIV"); | ||
@@ -89,0 +94,0 @@ tmp.innerHTML = html; |
{ | ||
"name": "nextalys-js-helpers", | ||
"version": "0.2.114", | ||
"version": "0.2.115", | ||
"description": "Nextalys Javascript Helpers", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1205087
0.03%18626
0.03%