본문 바로가기
IT일반

그누보드 내용관리 에디터에서 section 태그가 지워질 때 html 태그

by xavi2019 2020. 3. 20.

html_purifier 에서 태그를 제거합니다.

 

아래와 같이 해 보세요.

 

/tera/lib/common.lib.php

의 파일에서 아래 부분을 찾아서 붉은색 부분을 추가해보세요.

 

$config->set('URI.SafeIframeRegexp','%^(https?:)?//('.$safeiframe.')%');
$config->set('Attr.AllowedFrameTargets', array('_blank'));
//유튜브, 비메오 전체화면 가능하게 하기
$config->set('Filter.Custom', array(new HTMLPurifier_Filter_Iframevideo()));


$def = $config->getHTMLDefinition(true);
$def->addElement('section', 'Block', 'Flow', 'Common');
$def->addElement('nav', 'Block', 'Flow', 'Common');
$def->addElement('article', 'Block', 'Flow', 'Common');
$def->addElement('aside', 'Block', 'Flow', 'Common');
$def->addElement('header', 'Block', 'Flow', 'Common');
$def->addElement('footer', 'Block', 'Flow', 'Common');


$purifier = new HTMLPurifier($config);

 

 

댓글