Plugin Author
takien
(@takien)
Hello,
Hashtag currenly supports a-z and _ characters only.
Thread Starter
togur
(@togur)
Do you intend to implement this feature? Plugin is great, but without support of national characters is unusable for me.
how to set or add other language?
(arabic)
Hi,
If you want to use national characters in hashtag, you could modify the regular expression in the plugin file ‘hashtag.php’ at line 49.
For example, to accept voyels with accent :
$content = preg_replace('/(^|\s)#(\w*[a-zA-Zàáâãäåçèéêëìíîïðòóôõöùúûüýÿ_]+\w*)/i', '<span class="'.$class.'">\1#<a href="'.site_url().'?s='.$hash.'\2">\2</a></span>', $content);
Plugin Author
takien
(@takien)
Please update to the latest version.
It should works on other character.