isValidUrl
isValidUrl(content, whitelist) ⇒ Boolean
Section titled “isValidUrl(content, whitelist) ⇒ Boolean”Check that the text is a link | Only texts with http: or https:
Kind: global function
Returns: Boolean - Boolean
| Param | Type |
|---|---|
| content | String |
| whitelist | Array |
Example
console.log(isValidUrl('https://google.com'))