[FX.php List] Displaying FM text block with formatting

Steve Winter steve at bluecrocodile.co.nz
Tue Jun 4 11:24:59 MDT 2013


Howdy Bob

That's the way I do it, with both FX and the API… I also have a php function which cleans up the hideous HTML which is generated by getAsCSS and tries to turn it back into something a little more valid…!

Cheers
Steve



> I figured out how to do it: I created a 2nd field that is a calc field:
> 
> field1 -- my original field with formatted text in it
> field2 -- a calc field, = getasCSS ( field1 )
> 
> Then, in PHP, I use
> 
> echo html_entity_decode ( $field2 );
> 
> and I see my properly formatted text.
> 
> I'd be interested in hearing if there is a simpler way to do the same thing, without having to use a 2nd field.
> 
> Thanks for any input,
> 
> Bob Patin
> Longterm Solutions LLC
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> FileMaker 9, 10 & 11 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --
> Twitter: bobpatin
> AIM: longterm1954
> iChat: bobpatin
> --
> Expert FileMaker Consulting 
> FileMaker Hosting for all versions of FileMaker
> 
> On Jun 4, 2013, at 10:48 AM, Bob Patin <bob at patin.com> wrote:
> 
>> I've never used this before, but I vaguely recall that FX.php has the ability to display text as it was formatted in FileMaker. Am I remembering this correctly, and if so, what's the command to do that?
>> 
>> Thanks,
>> 
>> Bob Patin
>> Longterm Solutions LLC
>> bob at longtermsolutions.com
>> 615-333-6858
>> http://www.longtermsolutions.com
>> FileMaker 9, 10 & 11 Certified Developer
>> Member of FileMaker Business Alliance and FileMaker TechNet
>> --
>> Twitter: bobpatin
>> AIM: longterm1954
>> iChat: bobpatin
>> --
>> Expert FileMaker Consulting 
>> FileMaker Hosting for all versions of FileMaker
>> 
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

Steve Winter
+44 777 852 4776
steve at bluecrocodile.co.nz






More information about the FX.php_List mailing list