Arto Posted July 6, 2011 Posted July 6, 2011 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
webko Posted July 6, 2011 Posted July 6, 2011 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);
Arto Posted July 7, 2011 Author Posted July 7, 2011 Have you tried: nl2br($your_returned_field); Hi webko, it worked immediately! So many thanks to you! Yours, Arto
Recommended Posts
This topic is 5144 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 accountSign in
Already have an account? Sign in here.
Sign In Now