Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

html_entity_decode stops working on different server

Featured Replies

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.

  • Author

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...

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.