filsa.net: Frontier Scripting [ Script Archive | Ideas & Issues | Polyglot | Software | Projects ]

Character Entities

Make 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.

Ideas & Issues
Site Outline

I&I Home
1998
  05
  Improving Javascript Support
  Featuring suites.jsl: A pageheader script for the <SCRIPT> tag.
  06
  Character Entities
  Make working with HTML character entities easy.
  Copy Address
  FileWriters Questions
  Ideas for discussion
  Navigating the ODB
  Making it easier to get around in Frontier
  Suite Info
  If you write suites, tell your users about yourself!
  07
  Binary Objects in Your Website
  Frontier needs to learn how to render binary objects
  Creating META tags
  How can I put <meta> tags into my Frontier web pages?
  Filemaker and Frontier
  Where can I find resources for scripting Filemaker with Frontier?
  Frontier Mailing Lists
  More signal, less noise
  08
  Comments on Fat Pages
  Good fatpage, bad fatpage
  Quiet Advances
  Userland continues to crank out new features, bug fixes.
  Render Table Memory Issues
  An easy fix to a problem with rendering huge websites
  12
  Rendering out to more than one server
  Filewriters should be able to see the adrPageTable

   
Back to I&I Home   >>  

Back to
the top

This is Phil's Frontier Scripting Site. San Francisco, CA
Copyright © 1996-98, Phil Suh. All Rights Reserved.
http://www.filsa.net/frontier/ii/1998/06/charEntities.html
This page last built on 6/28/99; 11:07:02 PM

filsa.net: Frontier Scripting [ Script Archive | Ideas & Issues | Polyglot | Software | Projects ]