$value = substr($value, 0, $trim);
}
}
- if (preg_match('/[\x80-\xff]/', $value)) {
- return '=?UTF-8?B?' . base64_encode($value) . '?=';
- }
+ $value = preg_replace('/([\x80-\xff]+)/e', '"=?UTF-8?B?" . base64_encode("\1") . "?="', $value);
return $value;
}
$this->register_function('imglink', array($this, 'makeImgLink'));
$this->register_function('img', array($this, 'makeImg'));
$this->register_modifier('b', '_b_');
+ $this->register_modifier('htmlentities', 'banana_htmlentities');
$this->assign('errors', $this->error);
$this->assign('page', $this->page);
</tr>
{foreach from=$headers key=header item=values}
<tr class="pair">
- <td>{$values.name}</td>
+ <td>
+ {$values.name|htmlentities}
+ </td>
<td>
{if $values.fixed}
{$values.fixed|htmlentities}