Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
sqI edit
SUBMITTED BY:
maloans
DATE:
Feb. 2, 2018, 1:32 a.m.
FORMAT:
Text only
SIZE:
165 Bytes
Raw
Download
Tweet
HITS:
604
Go to comments
Report
// [B]old
$text = preg_replace('/\[B](.+?)\[\/B]/i', '<strong>$1</strong>',
$text);
// [I]talic
$text = preg_replace('/\[I](.+?)\[\/I]/i', '<em>$1</em>', $text);
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus