Pfarrer / yii2-email-obfuscator

Yii2 extension to obfuscate eMail addresses.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Custom Anchor Class #1

Open vkmel opened 6 years ago

vkmel commented 6 years ago

How to pass a custom class for the generated anchor tag? for example <a class="no-underline">

Pfarrer commented 6 years ago

That is currently not possible. Feel free to fork and add this feature. Alternatively, you could wrap the obfuscator in some div like so:

<div class="no-underline">
  <?= \pfarrer\yii2\email\Obfuscator::widget([
    'email' => 'mail@example.com',
  ]) ?>
</div>

Than you can refer to the a in CSS like so: div.no-underline > a { .. }