isValidUrl
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
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