답변 1개
채택된 답변
+20 포인트
4년 전
HTMLPurifier 플러그인이 다듬는 건데요
https://github.com/gnuboard/gnuboard5/blob/master/lib/common.lib.php#L612
$config 옵션을 주면되긴 하는데...
prefix를 안붙이면
view 페이지의 id/input.name 등과 겹칠 수 있습니다
수정이야 prefix가 입력된 게 보이지만
등록할 땐 사용자가 prefix가 뭔지 모르니까
id/name 참조에 영향이 있겠네요
</p>
<p> $config->set('Attr.EnableID', true);
$config->set('Attr.IDPrefix', 'user_');
$purifier = new HTMLPurifier($config);</p>
<p>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 2개
B
Big1
4년 전
v
vimo
4년 전
감사합니다. 해결되었네요^^ 관리자만 작성하는 홈페이지여서 일반 사용자는 따로 없어서 괜찮습니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
a 태그의 name attr은 html5에서 제거되었습니다
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
Attributes
name
Obsolete since HTML5
Was required to define a possible target location in a page. In HTML 4.01, id and name could both be used on <a>, as long as they had identical values.
Note
Use the global attribute id instead.
대신 id 를 사용할 것을 권하네요