\CodeLapseSecurity

セキュリティ系ユーティリティクラス

Summary

Methods
Properties
Constants
safeHtml()
safeCsv()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

safeHtml()

safeHtml(string $value, boolean $stripslashes)

文字列を安全なHTMLへ変換します。

Parameters

string $value

エスケープする文字列

boolean $stripslashes

(optional) stripslashesを適用するか指定します。標準はfalseです。

safeCsv()

safeCsv(string $value, boolean|null $use_nl2br) : string

安全なCSV形式になるように、カンマ・改行をエスケープします。

Parameters

string $value

エスケープする文字列

boolean|null $use_nl2br

(optional) trueを指定すると、改行をbrタグに置換します。標準はfalseです。

Returns

string