<div dir="ltr"><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">Please try this, hope it will help you.</span><div><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">$node-&gt;field_book_title[&#39;und&#39;]</span><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">[&#39;0&#39;][&#39;value&#39;] = </span>htmlentities(addslashes(<span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">$</span><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">node-&gt;field_book_title[&#39;und&#39;][</span><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">&#39;0&#39;][&#39;value&#39;]</span>));</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 3, 2013 at 2:37 AM, Pia Oliver <span dir="ltr">&lt;<a href="mailto:pia@piasworld.com" target="_blank">pia@piasworld.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a custom module which replaces some asci characters with htlm<br>
equivalent for display on the webpages. I am exporting from a<br>
FileMaker database and importing via Feeds Module.<br>
<br>
In my custom module I added this:<br>
<br>
       $node-&gt;field_book_title[&#39;und&#39;][&#39;0&#39;][&#39;value&#39;] =<br>
str_replace(&quot;&amp;#39;&quot;,&quot;&#39;&quot;,$node-&gt;field_book_title[&#39;und&#39;][&#39;0&#39;][&#39;value&#39;]);<br>
<br>
and then get an error and cannot see the screen. I want to display an<br>
apostrophe in the appropriate places and thought I did it correctly<br>
but ...<br>
<br>
I also want to replace &quot;&lt;br&gt;&quot; with a line break and now am afraid of<br>
trying that ... suggestions please.<br>
<br>
thanks,<br>
<br>
Pia<br>
<br>
--<br>
<br>
Randall House<br>
(member Antiquarian Booksellers&#39; Association of America -<br>
<a href="http://www.ABAA.org" target="_blank">http://www.ABAA.org</a> , ILAB, IOBA)<br>
835 Laguna Street<br>
Santa Barbara, California 93101<br>
<br>
(805) 963-1909      fax (805) 963-1650<br>
&lt;<a href="http://www.RandallHouseRareBooks.com" target="_blank">http://www.RandallHouseRareBooks.com</a>&gt;<br>
<br>
Know who your Internet bookseller is! Look for the ABAA membership logo, the<br>
Antiquarian Booksellers&#39; Association of America - now more than 50<br>
years of professional organization requiring its members to have a<br>
proven track record of knowledge and experience, and to abide by a<br>
written code of ethics.<br>
<span class="HOEnZb"><font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks,<br>Rajendra Kumar Thakur<br>9313055271<br>Skype:- raj_php<br><a href="http://www.paridhansoft.com" target="_blank"></a>
</div>