Brian Dunning's FileMaker Custom Functions

CF_HTMLtoFMP_styledText_sub ( text ; openTag ; closeTag ; replaceWith )

Converts data between predefined HTML tags into FMP bold / italic etc. As well as standard HTML tags, you can also define your own custom tags.

  Average rating: 4.6 (32 votes) Log in to vote

Chaim Bacon   Chaim Bacon - Show more from this author
SeekUnique
http://www.seekunique.co.uk

Share on Facebook Share on Twitter

  Sample input:
This custom function is subordinate to the CF_HTMLtoFMP_styledText custom function. All parameters are passed from the parent custom function.
  Sample output:
See parent custom function for sample or download the demo file from our website at:

http://www.productiveit.co.uk/files/HTML_to_FileMaker_styled_text.zip

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

See description in custom function above.

NOTE: The other custom function 'CF_HTMLtoFMP_styledText' is required for this one to work.

You can download a fully working sample file of this function at:
https://www.dropbox.com/s/slkfotd4wtlyxpq/HTML_to_FM_Styled_Text.fmp12?dl=0

 

Comments

Mark D Kerr   Mark D Kerr, Discovery Reef Design & Consulting
Jul 28, 2021
Appears to be non-functional in FM19 on Windows 10.
 
Chaim Bacon   Chaim Bacon, SeekUnique
Jul 28, 2021
Hi Mark, I have made a new sample file and it works as expected way back when it was written in 2008. Tested on Mac with FM 19 but can't see why it wouldn't work on Win or any version of FM. Please use this link to download: https://www.dropbox.com/s/slkfotd4wtlyxpq/HTML_to_FM_Styled_Text.fmp12?dl=0
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: