html entities privatemsg token I am using the privatemsg module to send messages and mails with questions about plants. The subject is automatically filled in with the token of a node title, which is always a plantname. They always have 2 single quotes in their names and that is turned into &#039; when it comes in the subject field of the private message.

What can I do about that?
You may implement this: hook_privatemsg_message_presave_alter in you custom module and change the message's subject as you like.

Here is a code sample:

/**
 * Implements hook_privatemsg_message_presave_alter().
 */
function your_module_privatemsg_message_presave_alter(&amp;$message) {
  // dsm($message); print out the $message contents
  $message-&gt;subject = "$message-&gt;subject"; // use single or double quotes
}


Tip: strip quotes from a string