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.

fmxslt:break_encode():strange behavior

Featured Replies

Hello all,

I have two layouts related to the same table, one is called 'detail' and the other (obviously ;)-) ) list.

Both of the layout contains a field (text unformatted) called 'Description'.

I publish this field on the web (one page to obtain a list of records, the second page to display the detail) using fmxsl:break_encode() function.

I really don't know why but the detail descritpion is well formatted (the code shows all the tag properly ex: < br /> or special chars like & etc..), the list version encode the source so I get < br /< and &am;amp; in my HTML and the reulst is that the browser display < br /> or &..

I thought it could be an 'header' problem but the headers of the files are the same.. what could be the cause of this

strange behavior??

Tnx in advance!

  • Author

here's the solution..

the fmxslt:break_encode() function (or fmxslt:html_encode() function) works only if 'disable-output-escaping' attribute in xsl:value-of tag is set to 'yes'.. now it works!

Edited by Guest

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.