March 16, 200916 yr 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.
March 17, 200916 yr 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 March 17, 200916 yr by Guest
March 18, 200916 yr Author Thanks Baloo, I've seen the html_entity_decode() used a lot but never bothered to look it up. That did the trick.
Create an account or sign in to comment