From d95ebca78e200cb325dcf934492c83090cf2b462 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 1 Oct 2008 23:57:38 +0000 Subject: added $protect_braced_quotes to Typography class, to prevent curly-quoting single and double quoted string within {curly "braces"} --- user_guide/libraries/typography.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'user_guide/libraries') diff --git a/user_guide/libraries/typography.html b/user_guide/libraries/typography.html index 359c590ce..29219059c 100644 --- a/user_guide/libraries/typography.html +++ b/user_guide/libraries/typography.html @@ -135,6 +135,16 @@ This function is identical to the native PHP nl2br() function, except $string = $this->typography->nl2br_except_pre($string); +

protect_braced_quotes

+ +

When using the Typography library in conjunction with the Template Parser library it can often be desirable to protect single + and double quotes within curly braces. To enable this, set the protect_braced_quotes class property to TRUE. + +

Usage example:

+ +$this->load->library('typography');
+$this->typography->protect_braced_quotes = TRUE; +
-- cgit v1.2.3-24-g4f1b