# betterdocs/3.8.2/views/widgets/title.php

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 3.8.2. 5 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/3.8.2/code/views/widgets/title.php
- Raw: https://pluginprobe.com/plugins/betterdocs/3.8.2/raw/views/widgets/title.php
- Modified: 2023-08-14T08:41:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/betterdocs/3.8.2/code/views/widgets/title.php#L10-L20`.

```php
<?php

$tag = empty( $tag ) ? 'h2' : $tag;
echo sprintf( '<%1$s id="betterdocs-entry-title" class="betterdocs-entry-title" %2$s>%3$s</%1$s>', strtolower( $tag ), $wrapper_attr, wp_kses_post( $title ) );

```
