On Sun, 23 Jan 2000 [EMAIL PROTECTED] wrote:
> Well... it's actually &(article.content:h); and &(article.content); (note
> the ampersands, not dollar signs)...
>
> The added :h tells midgard to display the variable with some formatting
> done to it, instead of directly. I think that :h will escape it, so that
> it can will be displayed in HTML... that is, if you give it "foo<a href
> ='d'>a</a>", it will do the proper escapes to display that string in HTML,
> instead of just dumping it into the output, which would give you "foo a",
> where a is a link.
The full list of modifiers:
:h add value as html. This will escape " to ", & to &, < to <,
> to >. Everything between [< and >] is added verbatim with the
[< and >] dropped.
:p add value as php code. This will escape " to ", & to &, < to <,
> to >.
:H add value as html. Everything is included verbatim.
:f add value as formatted text. The plain text input is formatted as HTML
on the fly. Lines starting with '-' will be transformed to unnumbered
lists, <p> will be added between paragraphs delimited by an empty line.
:F add value as formatted text. The plain text input is formatted as HTML
on the fly. Lines starting with '-' will be transformed to unnumbered
lists, <p> will be added between paragraphs delimited by an empty line.
Additionally, lines after an empty line with less than 10 words are
formatted as <h2>
:u add the value urlencoded, replacing non-safe URI characters with their
%code equivalents.
Henri, did I get everything right? If so I'll move this to the manual.
emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]