「関数リファレンス/BcBaser mark」の版間の差分
提供: baserCMS公式ガイド
(ページの作成:「## 説明 文字列を検索しマークとしてタグをつけます。 ## 使い方 <syntaxhighlight lang="php"> $this->BcBaser->mark($search, $text, [$name] , [$att...」) |
(相違点なし)
|
2014年11月2日 (日) 13:16時点における版
目次
説明
文字列を検索しマークとしてタグをつけます。
使い方
$this->BcBaser->mark($search, $text, [$name] , [$attributes], [$escape]);
パラメータ
- $search
- 検索する文字列
- $text
- 検索対象の文字列
- $name
-
タグ名
- 初期値:'strong'
- $attributes
-
属性
- 初期値:array()
- $escape
-
エスケープするかどうか
- 初期値:false
戻り値
用例
基本
コード
<?php $this->BcBaser->mark($search, $text, [$name] , [$attributes], [$escape]); ?>