开发者

remove the html tags from drupal tokens

In an email confi开发者_如何学Crmatory message , I am using drupal tokens to generate values dynamically. However, the html tags are also getting passed. How do i remove the html tags from the drupal tokens.

//Email confirmatory message.

Group: [message:group-name]

Author: [message_author:user]

Message: [message:message-body] //html tags are sent in the message body


I used the heredocs syntax: http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc

I got the idea to do so from here: http://drupal.org/node/252881

It works for me. Hope that it does for you as well.


Drupal sanitization functions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜