From a633ec293e9647aaca615a829171d641fbac9035 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Thu, 11 Dec 2008 14:31:33 +0000 Subject: various typography bugs, HTML comment parsing,
 parsing, more
 accurate block matching, etc.

---
 system/libraries/Typography.php | 41 +++++++++++++++++++++++++++++------------
 1 file changed, 29 insertions(+), 12 deletions(-)

(limited to 'system')

diff --git a/system/libraries/Typography.php b/system/libraries/Typography.php
index 27fa42192..fa1ec1999 100644
--- a/system/libraries/Typography.php
+++ b/system/libraries/Typography.php
@@ -88,11 +88,25 @@ class CI_Typography {
 			$str = preg_replace("/\n\n+/", "\n\n", $str);
 		}   
 
+		// HTML comment tags don't conform to patterns of normal tags, so pull them out separately, only if needed
+		$html_comments = array();
+		if (strpos($str, '