[support] help with php please

rajan kumar rajenthakur.kumar at gmail.com
Fri May 3 10:22:21 UTC 2013


Please try this, hope it will help you.
$node->field_book_title['und']['0']['value'] = htmlentities(addslashes($
node->field_book_title['und']['0']['value']));


On Fri, May 3, 2013 at 2:37 AM, Pia Oliver <pia at piasworld.com> wrote:

> I have a custom module which replaces some asci characters with htlm
> equivalent for display on the webpages. I am exporting from a
> FileMaker database and importing via Feeds Module.
>
> In my custom module I added this:
>
>        $node->field_book_title['und']['0']['value'] =
> str_replace("&#39;","'",$node->field_book_title['und']['0']['value']);
>
> and then get an error and cannot see the screen. I want to display an
> apostrophe in the appropriate places and thought I did it correctly
> but ...
>
> I also want to replace "<br>" with a line break and now am afraid of
> trying that ... suggestions please.
>
> thanks,
>
> Pia
>
> --
>
> Randall House
> (member Antiquarian Booksellers' Association of America -
> http://www.ABAA.org , ILAB, IOBA)
> 835 Laguna Street
> Santa Barbara, California 93101
>
> (805) 963-1909      fax (805) 963-1650
> <http://www.RandallHouseRareBooks.com>
>
> Know who your Internet bookseller is! Look for the ABAA membership logo,
> the
> Antiquarian Booksellers' Association of America - now more than 50
> years of professional organization requiring its members to have a
> proven track record of knowledge and experience, and to abide by a
> written code of ethics.
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>



-- 
Thanks,
Rajendra Kumar Thakur
9313055271
Skype:- raj_php
<http://www.paridhansoft.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20130503/436615be/attachment.html 


More information about the support mailing list