関数リファレンス/BcBaser mark
提供: baserCMS公式ガイド
目次
説明
文字列を検索しマークとしてタグをつけます。
使い方
$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]); ?>