|
35 | 35 | * @license http://opensource.org/licenses/MIT MIT License |
36 | 36 | * @link http://codeigniter.com |
37 | 37 | * @since Version 3.0.0 |
38 | | - * @filesource |
| 38 | + * @filesource |
39 | 39 | */ |
40 | 40 |
|
41 | 41 | /** |
@@ -137,16 +137,16 @@ public function autoTypography(string $str, bool $reduce_linebreaks = false): st |
137 | 137 | // not contain <pre> tags, and it keeps the PCRE patterns below simpler and faster |
138 | 138 | if (strpos($str, '<pre') !== false) |
139 | 139 | { |
140 | | - $str = preg_replace_callback('#<pre.*?>.*?</pre>#si', [$this, '_protect_characters'], $str); |
| 140 | + $str = preg_replace_callback('#<pre.*?>.*?</pre>#si', [$this, 'protectCharacters'], $str); |
141 | 141 | } |
142 | 142 |
|
143 | 143 | // Convert quotes within tags to temporary markers. |
144 | | - $str = preg_replace_callback('#<.+?>#si', [$this, '_protect_characters'], $str); |
| 144 | + $str = preg_replace_callback('#<.+?>#si', [$this, 'protectCharacters'], $str); |
145 | 145 |
|
146 | 146 | // Do the same with braces if necessary |
147 | 147 | if ($this->protectBracedQuotes === false) |
148 | 148 | { |
149 | | - $str = preg_replace_callback('#\{.+?\}#si', [$this, '_protect_characters'], $str); |
| 149 | + $str = preg_replace_callback('#\{.+?\}#si', [$this, 'protectCharacters'], $str); |
150 | 150 | } |
151 | 151 |
|
152 | 152 | // Convert "ignore" tags to temporary marker. The parser splits out the string at every tag |
|
0 commit comments