You may have found a solution to this already seeing as how it's been several months since you posted this question. I saw it today as a new member to the forums and thought I'd reply in case you hadn't found anything satisfactory.
There are two ways to preserve for the web the formatting of text as it appears in FileMaker: use the GetAsCSS or GetAsSVG calculations.
Example with GetAsCSS:
Suppose you have a database with a text field called Description that you want to publish on the web and display as formatted in FileMaker. Create a calculation field called Description_Web with the calculation being GetAsCSS ( Description ). Field defs:
Field Name Type Options / Comments
Description_Web Calculation = GetAsCSS ( Description )
This is a test of text in a field.
It has carriage returns.
<SPAN STYLE= "font-family: 'Helvetica';" >This is a test of text in a field.<BR>It has carriage returns.<BR><BR>The end.</SPAN>
Hope that helps!
I really appreciate this. Kind of gave up but your solution works a treat.
Again many thanks