0

The $site_name variable get the name of the site wrapped in <a> tag but I want print only the value without html?

Is possible?

Thank you in advance.

EDIT

I'm using the strip_tags() function of php <?php print strip_tags($site_name); ?> but I don't know if is the best solution to solve the issue.

1

In a preprocess function you can get the title like this:

variable_get("site_name");

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.