Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

html_entity_decode stops working on different server


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

Recommended Posts

Posted

I have what seems like an odd case here, but there is probably a simple solution that someone new to PHP like myself has overlooked. I have a calculated text field that displays some html tags such as

. I created this for the purpose of saving time when displaying information on our website.

In order to get it to display properly I use html_entity_decode on the getField results. I tested this by having a copy of our website on our local server where Filemaker is hosted and everything works fine. However, when I moved the site to the external web server where our public site is hosted it stopped working. Instead of

, the html source just shows br.

The external web server is running php version 5.2.6 so I have no idea what is causing the problem. All of the data is there but it is formatted differently from the copy on our internal server.

Posted

Just a follow up. I have been trying different things to make html show up on our live site. I have tried using &lt and &gt to make <>. I tried translating with htmlentities, htmlspecialcharacters, and others but it always results in the echo statement just printing what is in between the carrots. Does anyone know if there is some server setting that might prevent these from working?

  • 2 weeks later...
Posted

exactly what get's printed if you don't alter the field's value at all? Exactly what string does the field contain?

I'm also a little unclear on what you're attempting to do

one&ltbr /&gttwo will just print out one

two on the screen not:

one

two

This topic is 5793 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.