hi,
in my save-to-db script i'm formatting links to html.
$Text = eregi_replace("(http://)([A-Za-z0-9~&=;:,\?%_#./-]*)", "<a href=\"\1\2\" target=\"_blank\">\1\2</a> ",$Text);
the code on the output page:
print "<p><font face='Arial' size='2' color='#000000'>" . nl2br(htmlentities(stripslashes(mysql_result($result, $i, "Text")))) . "</font></p>";
The Problem in the HTML Output:
<a href="http://www.vol.at" target="_blank">http://www.vol.at</a>
What's wrong?
many thanks for help
greez,
kristijan