RE: [Zope] Using Zope
On Mon, 23 Jul 2001, Todd Cranston-Cuebas wrote:
Joel,
Can you define what you mean by "structured text?" I'm always running into situations where I don't want to give someone any control other than control over the copy. They want to put in bolding, italics, etc., but beyond that I don't want to let them do anything else.
Will structured text do the trick and if so, how does one implement this?
structured-text is a formal Zope things. It's a way of expressing some basic markup w/o any HTML. (The Zope Book covers this). With Structured Text, you can contol bold, italics, links, tables, etc., so it might be more power than you want, *plus* structured-text doesn't filter out actual html commands (which is normally a good thing, so that you can hedge in a tiny bit of html that there isn't a structured-text equivalent.) If you want people to provide basic content (aka sentences, paragrpahs, bold, italics, nothing else), you could run their input through a python regular expression that turns *hello* to italics, **hello** to bold, and nothing else. (Or if your users know HTML, turns leaves <b> and <i> alone, and nukes all other HTML tags. Check out the Strip-O-Gram. I haven't used it, but it might be what you want. http://www.zope.org/Members/chrisw/StripOGram -- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
participants (1)
-
Joel Burton