sam.gedert

Replace Text Inside specific characters....

Discussion created by sam.gedert on Aug 15, 2017
Latest reply on Aug 15, 2017 by fmpdude

Greetings FileMakers....

 

I think this should be a pretty easy one.

 

I have been building an HTML editor for a 360 Works Cloud mail solution.  I am also using MonkeyBread's text.TextToHTML function.

 

Both 3rd party solutions are working great.

 

I need to be able to perform a replace on a specific string of text to allow the user to insert hyper links.

 

Example.

 

Input of

"{{Action Factory}}

{{www.actionfactory.us}}"

 

would return...

 

<a href="https://www.ActionFactory.us">Action Factory</a>

 

I tried a custom function I found online but didn't behave like I had hope.

 

Thoughts or questions?

Outcomes