htmlencode(
TEXT
)
The htmlencode( function converts standard text into HTML text by converting any special characters into the equivalent HTML entities.
Parameters
This function has one parameter:
text – text to be converted.
Description
This function converts standard text into HTML text by converting any special characters into the equivalent HTML entities. This function also converts smart quotes into straight quotes.
htmlencode("Bob & Alice") ☞ Bob & Alice
htmlencode("Copyright © 2016") ☞ Copyright © 2016
htmlencode("“best sushi ever” says Sushi Weekly") ☞ "best sushi ever" says Sushi Weekly
See Also
- cgilink( -- creates a domain independent URL for another CGI action on the same server.
- cgilinknewwindow( -- creates a domain independent link for another CGI action on the same server that opens a new browser window.
- cginavlink( -- creates a domain-independent navigation link for the current record in this database.
- cginavlinknewwindow( -- creates a domain-independent navigation link (to a new browser window) for the current record in this database.
- encodeurlfragment( -- encodes text so that it can be used in the fragment portion of a URL (the portion after the # symbol).
- encodeurlhost( -- encodes text so that it can be used in the host portion of a URL (for example www.host.com).
- encodeurlpassword( -- encodes text so that it can be used in the password portion of a URL.
- encodeurlpath( -- encodes text so that it can be used in the path portion of a URL (the portion after the host name, but before any ? symbol).
- encodeurlquery( -- encodes text so that it can be used in the query portion of a URL (the portion after the ? symbol).
- encodeurluser( -- encodes text so that it can be used in the user name portion of a URL.
- htmldecode( -- converts HTML text into regular text by converting any special HTML entities (`&`, `©`, etc.) into the corresponding characters.
- urldecode( -- decodes text that contains percent encoded characters.
- urlencode( -- converts text into a legal URL (by converting spaces into `%20`). WARNING: THIS FUNCTION IS OBSOLETE.
- webformlink( -- generates a link to a Panorama form on the current web site (the link will open in a new browser window).
- webformlinknewwindow( -- generates a link to a Panorama form on the current web site.
- weblink( -- builds an HTML link tag
- weblinknewwindow( -- builds an HTML link tag
History
10.0 | No Change | Carried over from Panorama 6.0 |