DISQUS

Huddled Masses: testing acronyms

  • Harald Kampen · 4 years ago
    Your Acronym Replacer is nice. We know using the script a bit modified in our content management system (WebsoziCMS, GPL licensed).

    The modifications are:
    * excluding text with stristr($text, '< script') or stristr($text, '< option') or stristr($text, '< input') or stristr($text, '< textarea') or stristr($text, '< object')
    * Better performance by checking the abbreviations before replacing with
    if(strstr($text, $acronym)) { (after foreach()).

    I`m still searching for a way to use abbreviations with points and white-spaces. Any idea?