summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Typography.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Typography.php b/system/libraries/Typography.php
index 11b3917c0..1ae45774a 100644
--- a/system/libraries/Typography.php
+++ b/system/libraries/Typography.php
@@ -267,23 +267,23 @@ class CI_Typography {
// on which direction to curl, with non-word characters like punctuation
// being a secondary factor only after whitespace is addressed.
'/\'"(\s|$)/' => '’”$1',
- '/(^|\s)\'"/' => '$1‘“',
+ '/(^|\s|<p>)\'"/' => '$1&#8216;&#8220;',
'/\'"(\W)/' => '&#8217;&#8221;$1',
'/(\W)\'"/' => '$1&#8216;&#8220;',
'/"\'(\s|$)/' => '&#8221;&#8217;$1',
- '/(^|\s)"\'/' => '$1&#8220;&#8216;',
+ '/(^|\s|<p>)"\'/' => '$1&#8220;&#8216;',
'/"\'(\W)/' => '&#8221;&#8217;$1',
'/(\W)"\'/' => '$1&#8220;&#8216;',
// single quote smart quotes
'/\'(\s|$)/' => '&#8217;$1',
- '/(^|\s)\'/' => '$1&#8216;',
+ '/(^|\s|<p>)\'/' => '$1&#8216;',
'/\'(\W)/' => '&#8217;$1',
'/(\W)\'/' => '$1&#8216;',
// double quote smart quotes
'/"(\s|$)/' => '&#8221;$1',
- '/(^|\s)"/' => '$1&#8220;',
+ '/(^|\s|<p>)"/' => '$1&#8220;',
'/"(\W)/' => '&#8221;$1',
'/(\W)"/' => '$1&#8220;',