I've got a custom module that is sending some emails and I want to put the
site name in the subject line, but whenever I look up the
site_name in code, it is wrapped in html.
This is the code I use to generate the subject line:
$variables = array( '%site_name' => variable_get('site_name'), '%tags' => $params['tags'], ); $subject = t('%site_name: Verify your Subscription', $variables); error_log("subject=$subject");
In the email I received and in the error log, this is what $subject is:
<em class="placeholder">liberalgeek.com</em>: Verify your Subscription
Why is the
site_name wrapped in html?
How can I either strip the html or lookup the
site_name in a different way so that it doesn't have the html to start?