webtext(
webtext(
TEXT
)

The webtext( function converts a number or regular text into text encoded for display in a web browser.

Parameters

This function has one parameter:

text – text or number to be converted to HTML format.

Description

This function converts a number or regular text into text encoded for display in a web browser. As far as possible, any special characters are converted into HTML entities so that they will display correctly (for example accented characters like å, special characters like ©, and the < and > symbols.

    webtext("abc å © < >") ☞ abc &aring; &copy; &lt; &gt;

This function is frequently used in web server code.

See Also

- info("httprequestinprogress") -- returns true if this code is running on Panorama X Server, and the server is responding to a web client request.
- info("webclientsessioninprogress") -- returns true if this code is running on Panorama X Server, and the server is responding to a web client request.
- serverrunning( -- returns true if this code is running on a Panorama server, or false if it is running in single user mode or on a client.
- urlfilename( -- extracts the filename from a complete url.
- urlpath( -- extracts the path from a URL.
- webtagortext( -- prepares text for display in a web page.

History

Version | Status | Notes
10.2 | No Change | Carried over from Panorama 6.0