mirror of
https://github.com/clagnut/webtypography.git
synced 2025-09-02 17:42:46 +02:00
Merge pull request #15 from nevanscott/encoding
small apostrophe fix - php and encoding issue
This commit is contained in:
@@ -44,7 +44,7 @@ return array(
|
||||
);
|
||||
|
||||
function preventOrphans($string) {
|
||||
$string = htmlentities($string);
|
||||
$string = htmlspecialchars($string);
|
||||
$pattern = '/(.*) (\S*)$/i';
|
||||
$replacement = '$1 $2';
|
||||
$string = preg_replace($pattern, $replacement, $string);
|
||||
|
Reference in New Issue
Block a user