So, I can easily do this:
$keywords = array(' jacket ',' sweater ',);
$urls = array(' <a href="#">jacket</a> ',' <a href="#">sweater</a> ',);
$content = str_ireplace($keywords,$urls,$content);
But the problem is when something like jacket or sweater is already in a link tag.
I can't think of any simple solutions to this...