link/utils
@ckeditor/ckeditor5-link/src/utils
module
Filtering
Functions
-
createLinkElement( href ) → AttributeElement
static
Creates link
AttributeElement
with providedhref
attribute. -
ensureSafeUrl( url ) → String
protected static
Returns a safe URL based on a given value.
An URL is considered safe if it is safe for the user (does not contain any malicious code).
If URL is considered unsafe, a simple
"#"
is returned.Parameters
url : *
Returns
String
Safe URL.
-
isLinkElement( node ) → Boolean
static
Returns
true
if a given view node is the link element.