1
4

1 回答 1

2

Update:

$string = "<div>words words wrods <- words words</div>";
$string = str_replace('<-', '&lt;-', $string);
echo strip_tags($string);

Output (Source):

words words wrods &lt;- words words

Output (HTML):

words words wrods <- words words
于 2011-04-12T22:14:15.990 回答