if (is_url($name)) //URL { - $url = htmlspecialchars($name); + $url = $url2 = htmlspecialchars($name);