- htmlentities: documentation ( source)
- preg_replace: documentation ( source)
<?php
$string = 'Urza’s Mine';
$string = htmlentities ($string);
$string = preg_replace("/’/i","'",$string);
$string = preg_replace("/�/i","'",$string);
echo $string;