-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,16 +12,27 @@ | |
</head> | ||
<body> | ||
<h1>Email Obfuscator</h1> | ||
|
||
<?php | ||
$email = '[email protected]'; | ||
?> | ||
|
||
<?php | ||
$email1 = EmailObfuscator::obfuscate('[email protected]'); | ||
$email1 = EmailObfuscator::obfuscate($email); | ||
?> | ||
<p>This is obfuscated email: <?php echo $email1; ?></p> | ||
<pre><?php echo htmlentities($email1); ?></pre> | ||
<hr> | ||
<?php | ||
$email2 = obfuscate_email('[email protected]', 'Contact us', ['class' => 'some-class', 'id' => 'some-id', 'noscript' => 'Custom noscript contents']); | ||
$email2 = obfuscate_email($email, 'Contact us', ['class' => 'some-class', 'id' => 'some-id', 'noscript' => 'Custom noscript contents']); | ||
?> | ||
<p>This is obfuscated email: <?php echo $email2; ?></p> | ||
<pre><?php echo htmlentities($email2); ?></pre> | ||
<hr> | ||
<?php | ||
$email3 = obfuscate_email($email, null, ['mailto' => false]); | ||
?> | ||
<p>This is obfuscated email: <?php echo $email3; ?></p> | ||
<pre><?php echo htmlentities($email3); ?></pre> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters