[support] asci and html question in Drupal

Pia Oliver pia at piasworld.com
Fri Apr 26 00:29:54 UTC 2013


perhaps I copied the wrong instance; what I want to do is to replace 
'  with an apostrophe. Your response to me looks like it's a quote 
mark? I mean a single quote mark/apostrophe like in "Pia's question"

thanks,

Pia

> Metzler, David <mailto:metzlerd at evergreen.edu>
> April 25, 2013 17:01
>
> You're using the wrong escaping syntax for php. You could use \ but I 
> find it easier to use single quotes like this:
>
> The double quote is surrounded by '  if you can't read it.
>
> _replace("&#39;",'"',$node->field_book_title['und']['0']['value']);
>

-- 
Pia Oliver

<http://www.piasworld.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20130425/7a01141f/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compose-unknown-contact.jpg
Type: image/jpeg
Size: 770 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/support/attachments/20130425/7a01141f/attachment.jpg 


More information about the support mailing list