Brian Dunning's FileMaker Custom Functions

decodeEntities ( text )

Convert HTML entities (example &#'64';) to text (In this case a @)

  Average rating: 3.7 (3 votes) Log in to vote

Enzo Borri   Enzo Borri - Show more from this author
http://borri.org

Share on Facebook Share on Twitter

  Sample input:
decodeEntities ("john@doe.com")
  Sample output:
john@doe.com

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

Getting email addresses from web pages, I found they were encoded using HTML entities (such as "&#'64';" instead than "@"). Using this function I'm now able to transform email addresses formatted like "john@doe.com" to their readable form like "john@doe.com"

 

Comments

Jason Wood   Jason Wood, Define Database
Jul 24, 2020
hmm... the HTML entities appear to have gotten lost at some point...
 
Jason Wood   Jason Wood, Define Database
Jul 24, 2020
hmm... the HTML entities appear to have gotten lost at some point...
 
Enzo Borri   Enzo Borri
Jul 24, 2020
Yes, Jason! Unfortunately I see something went wrong. Unfortunately I have not with me right now the original to try to paste the original code. :-(
 

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: