Are you getting bored of this whole Rich Text thing? Trust me, you're not half as bored as I am of trying to get something to work. Well, for what I promise will be the last day, here is what I've found to be the "perfect" compromise.
First a recap of the past week (If you've searched and found this you might want to start reading from last Tuesday onward). What we've been looking for is the simplest of things. In a comment somebody suggested I shouldn't be too hard on Domino, as all products have their weaknesses. Well, this goes beyond being a weakness and is more of a flaw. Domino calls itself a web server but there's no real way of getting it to store HTML in a document!! What we've been looking for is a way to store HTML in a rich text field and then display that HTML as it was intended in read mode. To make it as simple as possible, we don't need to edit the content in the Notes Client and we don't need to worry about attachments. All the ideas I've had, and that you guys have suggested, over the last seven days have all had major weaknesses. They were all hacks.
Why 64KB? Because we are going to use a simple @Function to display the field in read mode and it's limited to displaying 64KB. Remember the hassles of displaying the field in read mode using square  brackets? Not only do you need to escape any square brackets the user might enter but you run the risk of Domino mysteriously adding random line breaks in the HTML. If this happens to happen inside an HTML tag you've got serious problems. The solution is to hide the Body field when in read mode and add a <Computed Value> element in its place. The @Function for this <Computed Value> is:
@ReplaceSubstring( @Text(Body); @NewLine; "")
When marked as PassThru HTML, this shows the Body field as HTML. Replacing @NewLines seems to remove any chance of the random Domino behaviour spoiling anything. Using @Text turns it all to "poor" text that Domino doesn't have problems displaying as PassThru. Thanks to Peter Leugner for pointing out that @Text now works with "rich" text in Domino 6.
What do you think? Apart from the fact that it limits the content to 64KB I think it's the best we are going to get. Until this becomes an option that is: