Update v_mailto.php
This commit is contained in:
parent
ccc1e1eb65
commit
fe178992c3
|
|
@ -41,11 +41,10 @@
|
||||||
|
|
||||||
//define a function to remove html tags
|
//define a function to remove html tags
|
||||||
function remove_tags($string) {
|
function remove_tags($string) {
|
||||||
// ----- remove HTML TAGs -----
|
//remove HTML tags
|
||||||
$string = preg_replace ('/<[^>]*>/', ' ', $string);
|
$string = preg_replace ('/<[^>]*>/', ' ', $string);
|
||||||
|
|
||||||
//remove control characters
|
//remove control characters
|
||||||
|
|
||||||
$string = str_replace("\r", '', $string); // --- replace with empty space
|
$string = str_replace("\r", '', $string); // --- replace with empty space
|
||||||
$string = str_replace("\n", ' ', $string); // --- replace with space
|
$string = str_replace("\n", ' ', $string); // --- replace with space
|
||||||
$string = str_replace("\t", ' ', $string); // --- replace with space
|
$string = str_replace("\t", ' ', $string); // --- replace with space
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue