Created
February 15, 2011 20:56
-
-
Save chelmertz/828226 to your computer and use it in GitHub Desktop.
Hz_Filter_Acronym
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$words = array( | |
'omg' => 'Oh my god', | |
'BRB' => 'Be right back' | |
); | |
require 'Hz/Filter/Acronym.php'; | |
$filter = new Hz_Filter_Acronym($words); | |
echo $filter->filter("OMG no you didn't! brb.."); | |
// output: "<acronym title="Oh my god">OMG<acronym> no you didn't! <acronym title="Be right back">brb<acronym>.." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment