summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-09-12 08:21:25 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-09-12 08:21:25 +0200
commit08e38123f2b14b146f861c77c04073a3fc88c85d (patch)
tree7221906d226addebeec1b257b4f0736941d08463
parent36f375fb40616319118edc51a0d747d33c2fc16a (diff)
-rw-r--r--system/libraries/Typography.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/system/libraries/Typography.php b/system/libraries/Typography.php
index 93e40b94a..b058fdab9 100644
--- a/system/libraries/Typography.php
+++ b/system/libraries/Typography.php
@@ -6,7 +6,7 @@
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
- * @copyright Copyright (c) 2006, EllisLab, Inc.
+ * @copyright Copyright (c) 2008, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -50,10 +50,17 @@ class CI_Typography {
}
/**
- * Main Processing Function
+ * Auto Typography
*
+ * This function converts text, making it typographically correct:
+ * - Converts double spaces into paragraphs.
+ * - Converts single line breaks into <br /> tags
+ * - Converts single and double quotes into correctly facing curly quote entities.
+ * - Converts three dots into ellipsis.
+ * - Converts double dashes into em-dashes.
+ * - Converts two spaces into entities
*/
- function convert($str)
+ function auto_typography($str)
{
if ($str == '')
{