summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries/typography.html
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-10-02 01:57:38 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-10-02 01:57:38 +0200
commitd95ebca78e200cb325dcf934492c83090cf2b462 (patch)
tree000eb11a6a11633ced0858bd0f4565fc06edbcfa /user_guide/libraries/typography.html
parent8e3869a90ae46c477ba1059a65fc480abea1cc03 (diff)
added $protect_braced_quotes to Typography class, to prevent curly-quoting single and double quoted string within {curly "braces"}
Diffstat (limited to 'user_guide/libraries/typography.html')
-rw-r--r--user_guide/libraries/typography.html10
1 files changed, 10 insertions, 0 deletions
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 <dfn>nl2br()</dfn> function, except
<code>$string = $this->typography->nl2br_except_pre($string);</code>
+<h2>protect_braced_quotes</h2>
+
+<p>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 <kbd>protect_braced_quotes</kbd> class property to <samp>TRUE</samp>.
+
+<p>Usage example:</p>
+
+<code>$this->load->library('typography');<br />
+$this->typography->protect_braced_quotes = TRUE;
+</code>
</div>
<!-- END CONTENT -->