Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I'm trying to echo a an href tag along with some images and the result I'm getting is simply a string of text. I'm not sure of how or why the result isn't being interpreted properly. Leaving out the FM API and declaration portions, here's what DOES work:

[center]

        

            '>
(closing php tag isn't showing up in the code here on FMForums)



Here's the code I would like to have so I can simply copy the above into one field in FM...



<?php echo $imageStringA; ?> [/center]

But again, this results in the string being echoed back. I've tried single-quotes, escaped double-quotes, the substitute function, etc. but no luck.

Any advice would be a great help.

Thanks.

Posted (edited)

If I understand your problem correctly, the first thing that comes to mind is that htmlentities() is getting run on the string at some point in the process.


$str = "A 'quote' is [b]bold[/b]";

echo htmlentities($str);

/* Outputs: A 'quote' is <b>bold</b>*/



check the HTML source (View->Page Source in firefox ) to confirm.

oh yeah, if that is the case and removing it will break something else you can always use html_entity_decode() to reverse it

Edited by Guest
Posted

Thanks Baloo,

I've seen the html_entity_decode() used a lot but never bothered to look it up.

That did the trick.

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