diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-10-02 01:57:38 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-10-02 01:57:38 +0200 |
commit | d95ebca78e200cb325dcf934492c83090cf2b462 (patch) | |
tree | 000eb11a6a11633ced0858bd0f4565fc06edbcfa /user_guide/libraries/typography.html | |
parent | 8e3869a90ae46c477ba1059a65fc480abea1cc03 (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.html | 10 |
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 -->
|