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.
- 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`).
- 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 |