0
누구나 PEAR HTML BBcode 패키지를 사용 했습니까?배 HTML BBcode 하이퍼 링크
하이퍼 링크 대상 _blank가 파이어 폭스에서 새 탭을 열지 못하는 이유를 정말로 이해하지 못합니다.
SQL 코드 조각 삽입 (문자열)
[url=http://site.com t=_blank]Link[/url]
PHP가 필요 PEAR
require_once 'HTML/BBCodeParser.php';
$options = @parse_ini_file('BBCodeParser.ini');
$parser = new HTML_BBCodeParser($options);
$parser->setText($text);
$parser->parse();
echo $parser->getParsed();
BBCodeParser.ini
[HTML_BBCodeParser]
; http://articles.sitepoint.com/article/bb-code-php-application/
; possible values: single|double
; use single or double quotes for attributes
quotestyle = double
; possible values: all|nothing|strings
; quote all attribute values, none, or only the strings
quotewhat = all
; the opening tag character
open = "["
; the closing tag character
close = "]"
; possible values: true|false
; use xml style closing tags for single html tags (<img> or <img />)
xmlclose = true
; possible values: a comma seperated list of filters
; comma seperated list of filters to use
filters = Basic,Extended,Links,Images,Lists
; filters = Basic,Extended,Links,Images,Lists,Email,MyBB