[FX.php List] Raw encoding
Bob Patin
bob at patin.com
Tue Oct 9 18:49:09 MDT 2007
You might also want to use
html_entity_decode()
if you get some strange characters in place of apostrophes...
PHP.net is (IMHO) the Holy Grail of sources for all things PHP... not
that it hasn't prevented my wasting countless hours on silly
errors... :)
Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
Member of FileMaker Business Alliance and FileMaker TechNet
CONTACT US VIA INSTANT MESSAGING:
AIM or iChat: longterm1954
Yahoo: longterm_solutions
MSN: tech at longtermsolutions.com
ICQ: 159333060
--------------------------
Contact us for FileMaker hosting for all versions of FileMaker
PHP • CDML • Full email services • Free DNS hosting • Colocation •
Consulting
On Oct 9, 2007, at 7:23 PM, Tim 'Webko' Booth wrote:
> At 03:28 AM 10/10/2007, you wrote:
>> Apologies if this is a ridiculously simple question.
>>
>> I'm converting some old CDML pages to fx.php. In several spots
>> there are fields that let users put simple HTML tags for bold and
>> italic to format the display of their submission. In CDML all that
>> was required was a raw tag [FMP-field: xxxxxx, raw] to have these
>> properly rendered.
>
> In my experience, if there are bold or italic tags in a text field,
> these get correctly rendered to screen in PHP.
>
> echo $theFoundData['Description'][0];
>
> Will just output the contents as part of a webpage, so the tags
> will get interpreted.
>
> However, this won;t render the linebreaks, unless people have used
> <br> or <p> within the field, so:
>
> echo nl2br ($thenewsData['Description'][0]);
>
> Will cover that off...
>
> YMMV?
>
> Webko
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list