isSafeImageSrc()
function isSafeImageSrc(src): boolean;Allows data:image URIs, http(s) URLs and relative paths; rejects javascript: and other schemes.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
src |
string |
Returns
Section titled “Returns”boolean