# 게시물 내부 콘텐츠를 커스터마이징하는 방법 (커스텀 속성 등)

**URL:** https://meta.discourse.org/t/what-are-the-different-ways-to-customize-content-inside-a-post-custom-attributes-and-such/226747
**Category:** Support
**Created:** [5월 11, 2022, 11:10오전 UTC](https://meta.discourse.org/t/what-are-the-different-ways-to-customize-content-inside-a-post-custom-attributes-and-such/226747 "2022-05-11T11:10:01Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![SaraDev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saradev/32/335139_2.png) [@SaraDev](https://meta.discourse.org/u/SaraDev)
#### Post date: [5월 17, 2022, 9:15오후 UTC](https://meta.discourse.org/t/what-are-the-different-ways-to-customize-content-inside-a-post-custom-attributes-and-such/226747/5 "2022-05-17T21:15:53Z")

</div>

Discourse에서는 일부 HTML 클래스를 사용할 수 있지만, 보안상의 이유로 게시물 내 대부분의 HTML은 정제(sanitize)되며, 마크다운에서는 매우 엄격한 화이트리스트에 포함된 HTML만 허용됩니다. 클래스를 화이트리스트에 추가하려면 **반드시** 플러그인을 사용해야 하며, 정제 과정은 서버 측과 클라이언트 측 모두에서 수행됩니다. 화이트리스트에 추가할 수 있는 속성에 대한 세부 사항은 [Whitelisting HTML tags / attributes](https://meta.discourse.org/t/whitelisting-html-tags-attributes/159653)를 참고하세요. ~~그리고 이것은 다음과 같은 모습일 것입니다: [Discourse HTML Whitelist](https://github.com/pnewell/discourse-html-whitelist).~~ 그리고 @RGJ가 언급했듯이, `whiteList()` 함수는 비추천(deprecated) 상태이며, 현재는 [allowList()](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js#L39)로 불립니다.

콘텐츠를 커스터마이징할 수 있는 다른 방법에 대해 말씀드리자면, 게시물은 [위젯](https://meta.discourse.org/t/a-tour-of-how-the-widget-virtual-dom-code-in-discourse-works/40347)이며, Discourse 테마는 [위젯을 장식(decorate)할 수 있는 기능](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-c-6)을 갖추고 있으므로 이를 활용할 수 있습니다.

도움이 되셨으면 좋겠습니다!

---

_[View the full topic](https://meta.discourse.org/t/what-are-the-different-ways-to-customize-content-inside-a-post-custom-attributes-and-such/226747)._
