convertURL

public function convertURL(url:string, name:string, elm:string/HTMLElement):string
URL converter function this gets executed each time a user adds an img, a or any other element that has a URL in it. This will be called both by the DOM and HTML manipulation functions.

Params

Name Type Description
url string URL to convert.
name string Attribute name src, href etc.
elm string/HTMLElement Tag name or HTML DOM element depending on HTML or DOM insert.

Returns

string Converted URL string.