COM makeClickableLinks
提供: GeeklogJpWiki
lib-common.php>COM makeClickableLinks
説明
string COM_makeClickableLinks (string $text)
プレーンアスキーテキストを検知し、クリッカブルリンクに代える。"http:", "https:", "ftp:", and "www.".で始まるlinkを検知する。
- <a>...</a>タグで囲まれたリンク付きの同じ文字列を返す。
news:de.comp.lang.php <aieq4p$12jn2i$3@ID-16486.news.dfncis.de> Andreas Schwarzの記事より引用
パラメータ
- $text
- the (plain-ascii) text string
返り値
the same string, with links enclosed in <a>...</a> tags