# Как получить доступ к необработанному контенту из компонента темы?

**URL:** <https://meta.discourse.org/t/how-to-access-the-uncooked-content-from-a-theme-component/150252>\
**Category:** Development\
**Created:** [03.Май.2020 16:37:14 UTC](https://meta.discourse.org/t/how-to-access-the-uncooked-content-from-a-theme-component/150252 "2020-05-03T16:37:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [04.Май.2020 02:48:23 UTC](https://meta.discourse.org/t/how-to-access-the-uncooked-content-from-a-theme-component/150252/2 "2020-05-04T02:48:23Z")

</div>

Чтобы получить доступ к raw-коду, вам потребуется использовать плагин.

Однако вы можете использовать вспомогательную функцию `wrap`, чтобы получить div-элемент для работы.

```plaintext
[wrap=test]
hello world
[/wrap]

```

Это рендерится как:

```plaintext
<div class="d-wrap" data-wrap="test">
<p>hello world</p>
</div>

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-access-the-uncooked-content-from-a-theme-component/150252)._
