The < and > brackets don't appear in the help text so I changed them to the equivalent HTML character entities.

CommentFileSizeAuthor
token_custom_entities.patch902 byteschristefano

Comments

hanoii’s picture

Status: Needs review » Fixed

I changed that using a slightly different approach than yours, more like how block.module does it:

Thanks and it's committed now.

    '#description' => t('Enter the php code that will be evaluated. You do not need to use enclose the code between %php. You have $user, $comment, $node and $taxonomy available depending on the type. Global has no particular object to use. The code should return a string.', array('%php' => '<?php 

')),
?>

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.