Name

urlify — Converts its argument to a string and returns it in URL encoding.

Synopsis

string urlify ( obj string );

Description

The urlify() function encodes its argument string according to URI rules (i.e. whitespaces are replaced with plus signs and all special characters are replaced with '%XX' notation. This is especially useful for stylesheets that compose dynamic HTML documents with calculateable values of attributes like <A HREF=...>.

Parameters

obj

Value to be formatted as URI

Return Types

String