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

fmxslt:break_encode():strange behavior


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

Recommended Posts

Posted

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!

Posted (edited)

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

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