Hello forum,
how can i show the content of a richtext field in a browser as html? I need to switch the form option “Content-Type” to “html”, because of some oter effects. In this moment, any richtext will be shown in a browser as plain text, without any format!
How can i change this?
Thanks! Bernd
Subject: re: Lost formatting when you set form content to HTML
Well, yes, that’s what this form option does. The web server no longer cares about any formatting in your rich text, it will just push the text through to the browser, assuming it to be HTML data already.
If you use the default option (content type=Notes), you can designate parts of the form as passthru and have the rest (including your rich text field) processed in the usual way. Since you haven’t said why you think the form has to be content type=HTML, I can’t tell whether that solution will work for you.