> ## Documentation Index
> Fetch the complete documentation index at: https://docs.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# サポートされているHTML機能

<div className="article_labels_list" style={{display: 'none'}} dangerouslySetInnerHTML={{__html: "End User , Box Doc Gen , Reference , Product Utilization , New"}} />

Box Doc Genでは、テキストタグを使用してHTMLテンプレートからドキュメントを生成できます。 この記事では、サポートされているタグの種類とその使用方法について説明します。

## サポートされているタグの種類

Box Doc Genでは、HTMLテンプレート内で以下のタグをサポートしています。

* テキストタグ

## 生成方法ごとのサポート状況

サポートされるタグの種類は、ドキュメントの生成方法によって異なります。

| タグの種類  | API | Automate | Boxウェブアプリ |
| ------ | --- | -------- | --------- |
| テキストタグ | 〇   | ×        | 〇         |

## テキストタグ

テキストタグは、文字列型、数値型、または日付型のデータフィールドです。 次の例では、`companyName`、`subscriptionPlan`、`renewalDate`、`expiryDate`などのフィールドがテキストタグとして使用されています。

```json theme={null}
{
  "companyName": "Acme Inc",
  "subscriptionPlan": "E-Advanced",
  "tcv": "100K",
  "renewalDate": "12-12-2026",
  "seatCount": "300",
  "expiryDate": "12-12-2026",
  "AETitle": "Senior Accounts Manager",
  "devCount": "30",
  "customAppsApiCallsAvg": "10000",
  "customApps": 15,
  "AccountExecutive": "John Doe"
}
```

動的に置き換えるフィールドを含めたHTMLテンプレートを作成します。 ドキュメントの生成時に、Box Doc Genによって二重波括弧内のフィールドがデータに置き換えられます。

### テキストタグの書式設定

`::`演算子を使用すると、テキストタグの値をインラインで書式設定できます。 次の表は、入力形式の例とその出力結果を示しています。

| 入力形式                                        | 入力データ      | 出力データ      |
| ------------------------------------------- | ---------- | ---------- |
| `{{invoice.customerName :: uppercase}}`     | Acme Inc   | ACME INC   |
| `{{invoice.customerName :: lowercase}}`     | Acme Inc   | acme inc   |
| `{{invoice.date :: format("dd-mm-yyyy")}}`  | 13-03-2023 | 13-03-2023 |
| `{{invoice.date :: format("mm-dd-yyyy")}}`  | 13-03-2023 | 03-13-2023 |
| `{{invoice.date :: format("dd-mmm-yy")}}`   | 13-03-2023 | 13-Mar-23  |
| `{{invoice.id :: format("xxx-xxxx")}}`      | Inv1203    | Inv-1203   |
| `{{invoice.amount :: format("EU-Number")}}` | 300000     | 300.000    |
| `{{invoice.amount :: format("US-Number")}}` | 300000     | 300,000    |
