Docs > Tags > string
The <content:string> tag is used to define a placeholder for single-line text, without markup.
| Name | R? | Description |
|---|---|---|
| id | Y | Unique id. Alphanumeric, must not start with a number. |
Examples
In this example, a string tag is being used to ensure that no markup can be used inside an <h1> tag, not even linebreaks.<h1><content:string id="headline"/></h1>In this example, a tag named "category" is defined as page metadata, and used to control output elsewhere in the template.
<html>
<head>
<content:string id="category"/>
</head>
<body>
<?js if (page.getText('category')=='News') { ?>
<h1>Latest news</h1>
...
<?js } ?>
</body>
</html>



