Archive of UserLand's first discussion group, started October 5, 1998.

HTML tags in messages

Author:Dave Winer
Posted:1/11/1999; 9:48:02 AM
Topic:HTML tags in messages
Msg #:1985
Prev/Next:1984 / 1986

If this works as planned, you should see this text in italic.

But this text is not bold. (Bold is not one of the allowed tags.)

The following code should be readable:

for i = 1 to 10
   msg (i)

Yee-hi! It is.. (

 is one of the allowed tags.)

Explanation

People want to put tags in their messages on the DG, but I want to give the sysop control over whether or not tags are permitted and if so, which ones are.

So there's a new preference, at config.mainResponder.legalTags. It's a table. Each item in the table is a boolean. The name of the item is the name of a legal tag. The value must be true in order for the tag not to be neutered.

For right now the legal tags on this server are and

.

You can get a bold line by prefacing it with three asterisks.

Changes

The changes were in mainResponder.neuterText and in mainResponder.init.

Demo

To see the new prefs in action, scroll to the bottom of this page:

http://developers.userland.com/config/prefs




There are responses to this message:


This page was archived on 6/13/2001; 4:47:10 PM.

© Copyright 1998-2001 UserLand Software, Inc.