Technical References - [unurl]

Changes text from URL-compatible characters to plain text.

numero = 271
interpreted = N
texte = [unurl]Any URL Text[/unurl] To automatically convert text containing URL characters such as %20, %3A, etc, put it inside a [UnURL] context. Certain letters, such as spaces, colons, and the equals sign (=) are not allowed inside URLs unless they are first converted to hexadecimal form -- the UnURL context converts them back. This is the opposite of [url]. Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):
[unurl]Filename%20with%20spaces.gif[/unurl]
In the example above, the displayed text will be Filename with spaces.gif

By default, the [unurl] context will not convert hex codes that contain lowercase letters. So, %3A will be converted to a colon while %3a will not. You can use the 'ignorecase' parameter to force the [unurl] context to convert hex codes containing lowercase letters. So [unurl ignorecase =T]%3a[/unurl] will convert %3a to a colon.

This context is rarely needed, because most of the time WebDNA has already converted the text (in URL parameters, for instance) back to plain text. If you plan to store text with embedded unusual characters such as tabs or carriage returns into a field of a database, you might use [url] to store them and [unurl] to retrieve them. [unurl]Any URL Text[/unurl]

To automatically convert text containing URL characters such as %20, %3A, etc, put it inside a [unurl] context. Certain letters, such as spaces, colons, and the equals sign (=) are not allowed inside URLs unless they are first converted to hexadecimal form -- the UnURL context converts them back. This is the opposite of [url].

Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):

[unurl]Filename%20with%20spaces.gif[/unurl]

In the example above, the displayed text will be

Filename with spaces.gif

By default, the [unurl] context will not convert hex codes that contain lowercase letters. So, %3A will be converted to a colon while %3a will not. You can use the 'ignorecase' parameter to force the [unurl] context to convert hex codes containing lowercase letters. So [unurl ignorecase =T]%3a[/unurl] will convert %3a to a colon.



This context is rarely needed, because most of the time WebDNA has already converted the text (in URL parameters, for instance) back to plain text. If you plan to store text with embedded unusual characters such as tabs or carriage returns into a field of a database, you might use [url] to store them and [unurl] to retrieve them.

DOWNLOAD WEBDNA NOW!

Top Articles:

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

WebDNA Modules

A list of the currently available modules...

WebDNA Libraries

A list of available libraries for WebDNA...

Tips and Tricks

A list of user-submitted tips ...

Related Readings:

[thisurl]

[thisurl] displays the URL of the current page...

[validcard]

Checks legitimacy of credit card...

[function]

This context enables the WebDNA programmer to call a previously defined block of WebDNA code...

[addlineitem]

Adds a product to the specified shopping cart...

[SQLinfo]

...

[xsl]

Enables the WebDNA programmer to compile and apply XSL style sheets to XML data...