Jump to content

keep format input


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

Recommended Posts

What Bob said - I cannot make out what you are actually trying to achieve....

 

 

filemaker have a field that has special formatting, such as bold, line breaks, etc.
 
and I would keep that format with PHP API, because the display in a browser only shows the linear text
Link to comment
Share on other sites

Ok, is now well:

 

<textarea id='editor{$x}' cols='90' rows='18'>".htmlspecialchars_decode(nl2br($record->getField('TEXTO BIOPSIAS 2::TEXTO')))."</textarea>

 

and should look like:

 

<textarea id='editor{$x}' cols='90' rows='18'>".htmlspecialchars_decode(nl2br($record->getField->getAsCSS('TEXTO BIOPSIAS 2::TEXTO')))."</textarea>

 

so or am in error?

Link to comment
Share on other sites

  • 3 weeks later...

You will need a new calculation field

 

TEXTO_Css     GetAsCss('TEXTO')

 

In the database, and then display that field in the PHP:

 

<textarea id='editor{$x}' cols='90' rows='18'>".htmlspecialchars_decode(nl2br($record->getField('TEXTO BIOPSIAS 2::TEXTO_Css')))."</textarea>

Link to comment
Share on other sites

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