# Plain

This component simply renders the value of a variable (or simply a string) wherever you want it, **escaping HTML tags** (`<` becomes `&lt;` etc.).

## Parameters

This component expects one parameter.

## Examples

### Example 1: Rendering a string into a `<div>` tag.

```ruby
div id: "foo", class: "bar" do
  plain "Hello World"
end
```

returns

```markup
<div id="foo" class="bar">
  Hello World
</div>
```

### Example 2: Render a variable into a `<div>` tag.

```ruby
@hello = "World"
# ...

div id: "foo", class: "bar" do
  plain @hello
end
```

returns

```markup
<div id="foo" class="bar">
  World
</div>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.matestack.io/matestack-ui-core/1.5.0/components-api/core-components/plain.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
