summaryrefslogtreecommitdiffstats
path: root/system/helpers/typography_helper.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-01-17 01:34:37 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-01-17 01:34:37 +0100
commit8b25191aededd91dd4ab942fd0c776f073433db2 (patch)
tree70071fc3207c7981d6d09bb86f4d1e18ec20e741 /system/helpers/typography_helper.php
parentfbe122d0c029f254019d6ebb53c9b85706d0a1a1 (diff)
Fixed bug #2810 with nested tags improperly having paragraph tags placed around them.
Diffstat (limited to 'system/helpers/typography_helper.php')
-rw-r--r--system/helpers/typography_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/typography_helper.php b/system/helpers/typography_helper.php
index 355f02cf9..aa751db8b 100644
--- a/system/helpers/typography_helper.php
+++ b/system/helpers/typography_helper.php
@@ -152,8 +152,8 @@ class Auto_typography {
* ends. Later on we'll do some further clean up.
*
*/
- $str = preg_replace("#(<.*?)(".$this->block_elements.")(.*?>)#", "</p>\\1\\2\\3", $str);
- $str = preg_replace("#(</.*?)(".$this->block_elements.")(.*?>)#", "\\1\\2\\3<p>", $str);
+ $str = preg_replace("#(<)(".$this->block_elements.")(.*?>)#", "</p>\\1\\2\\3", $str);
+ $str = preg_replace("#(</)(".$this->block_elements.")(.*?>)#", "\\1\\2\\3<p>", $str);
/*
* Convert "ignore" tags to temporary marker