Skip to content

isValidUrl

isValidUrl(content, whitelist) ⇒ Boolean

Check that the text is a link | Only texts with http: or https:

Kind: global function
Returns: Boolean - Boolean

ParamType
contentString
whitelistArray

Example

console.log(isValidUrl('https://google.com'))