How to add UTF-8 support to SEO Smart Links?
-
It’s very easy, just change this line (114):
$reg = $options['casesens'] ? '/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))\b($name)\b/msU' : '/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))\b($name)\b/imsU';
For this other one:
$reg = $options['casesens'] ? '/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))(?!\pL)($name)(?!\pL)/msU' : '/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))(?!\pL)($name)(?!\pL)/imsU';
And enjoy it ??
Thanks Vladimir Prelovac for your great job.
- The topic ‘How to add UTF-8 support to SEO Smart Links?’ is closed to new replies.