convertURL

public function convertURL(u:string, n:string, Tag: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
u string URL to convert.
n string Attribute name src, href etc.
Tag string/HTMLElement name or HTML DOM element depending on HTML or DOM insert.

Returns

string Converted URL string.