Jump to content

Paragraph breaks problem in CWP


This topic is 4698 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

I have a text field typically with several paragraphs but the output on web page ignores the paragraph markers altogether (whatever they may be in Filemaker). So the text becomes one big, hardly readable block.

I am using FMSA 11 on Mac, PHP is set to UTF-8 nn FMSA Web Publishing section.

I have tried e.g. GetAsCSS calculation, but PHP just outputs the result plainly on the web page, that is, the original text with html-entities. This might be solved with PHP html_entity_decode() Function but is this really the only option available?

Thanks for any answers!

Arto

Link to comment
Share on other sites

Hi,

I have a text field typically with several paragraphs but the output on web page ignores the paragraph markers altogether (whatever they may be in Filemaker). So the text becomes one big, hardly readable block.

I am using FMSA 11 on Mac, PHP is set to UTF-8 nn FMSA Web Publishing section.

I have tried e.g. GetAsCSS calculation, but PHP just outputs the result plainly on the web page, that is, the original text with html-entities. This might be solved with PHP html_entity_decode() Function but is this really the only option available?

Thanks for any answers!

Arto

Have you tried:

nl2br($your_returned_field);

Link to comment
Share on other sites

This topic is 4698 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.