<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 排版類 排版類提供了一些方法用于幫助你格式化文本。 * [使用排版類](http://codeigniter.org.cn/user_guide/libraries/typography.html#id2) * [初始化該類](http://codeigniter.org.cn/user_guide/libraries/typography.html#id3) * [類參考](http://codeigniter.org.cn/user_guide/libraries/typography.html#id4) ## [使用排版類](http://codeigniter.org.cn/user_guide/libraries/typography.html#id5) ### [初始化該類](http://codeigniter.org.cn/user_guide/libraries/typography.html#id6) 跟 CodeIgniter 中的其他類一樣,可以在你的控制器中使用?$this->load->library()?方法加載排版類: ~~~ $this->load->library('typography'); ~~~ 一旦加載,排版類就可以像下面這樣使用: ~~~ $this->typography ~~~ ## [類參考](http://codeigniter.org.cn/user_guide/libraries/typography.html#id7) classCI_Typography $protect_braced_quotes = FALSE 當排版類和?[模板解析器類](http://codeigniter.org.cn/user_guide/libraries/parser.html)?同時使用時,經常需要保護大括號中的的單引號和雙引號不被轉換。 要保護這個,將?protect_braced_quotes?屬性設置為 TRUE 。 使用示例: ~~~ $this->load->library('typography'); $this->typography->protect_braced_quotes = TRUE; ~~~ format_characters($str) 參數: * **$str**?(string) -- Input string 返回: Formatted string 返回類型: string 該方法和上面的?auto_typography()?類似,但是它只對字符進行處理: > > > * 除了出現在標簽中的引號外,引號會被轉換成正確的實體。 > * 撇號被轉換為相應的實體。 > * 雙破折號(像 -- 或--)被轉換成 em — 破折號。 > * 三個連續的點也會被轉換為省略號… 。 > * 句子后連續的多個空格將被轉換為 &nbsp; 以便在網頁中顯示。 > > 使用示例: ~~~ $string = $this->typography->format_characters($string); ~~~ nl2br_except_pre($str) 參數: * **$str**?(string) -- Input string 返回: Formatted string 返回類型: string 將換行符轉換為 標簽,忽略 標簽中的換行符。除了對 標簽中的換行處理有所不同之外,這個函數和 PHP 函數?nl2br()?是完全一樣的。 使用示例: ~~~ $string = $this->typography->nl2br_except_pre($string); ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看