Skip to content

Commit

Permalink
Update v_mailto.php
Browse files Browse the repository at this point in the history
  • Loading branch information
markjcrane authored Jan 17, 2017
1 parent ea025c4 commit 4756bea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions secure/v_mailto.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@

//define a function to remove html tags
function remove_tags($string) {
// ----- remove HTML TAGs -----
//remove HTML tags
$string = preg_replace ('/<[^>]*>/', ' ', $string);

// remove control characters

//remove control characters
$string = str_replace("\r", '', $string); // --- replace with empty space
$string = str_replace("\n", ' ', $string); // --- replace with space
$string = str_replace("\t", ' ', $string); // --- replace with space
Expand Down

0 comments on commit 4756bea

Please sign in to comment.