| filsa.net: Frontier Scripting [ Script Archive | Ideas & Issues | Polyglot | Software | Projects ] |
|
|
Character EntitiesMake working with HTML character entities easy.The addition of the HTML menu in Frontier 5 has been great. It's continually been improved as well, and I've started to use it more and more.This makes more of my HTML writing possible inside of Frontier. I find myself jumping out to my editor, "PageSpinner", less frequently. (Although I do love PageSpinner, it's an excellent HTML editor and it works great with Frontier.) One thing that is a pain when writing HTML in Frontier: character entities. On the mailing lists people often suggest escaping special Frontier characters when you want them to appear in your page (the left-brace [ { ] and the quotemark [ " ] are two typical examples). Looking up character entities is a pain. So I wrote a script to do it for me. This script creates character entities for the quotemark, less than, greater than, and ampersand. IT also escapes the atmark symbol and the left-brace. Other higher ASCII characters (like national language symbols, the copyright mark, etc.) are converted to character entities. Give it a try! I have a command in my custom menu for this script, so it's always accessible. This is a fatpage. You can also view the source. NOTE: I updated the script on Fri, Jul 24, 1998. It's a bit smarter, and will deal with strings and not just single characters. It's a good script to look at to learn about the case statement as well.
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This is Phil's Frontier Scripting Site. San Francisco, CA |
| filsa.net: Frontier Scripting [ Script Archive | Ideas & Issues | Polyglot | Software | Projects ] |