# betterdocs/3.5.3/views/templates/parts/content.php

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

- Page: https://pluginprobe.com/plugins/betterdocs/3.5.3/code/views/templates/parts/content.php
- Raw: https://pluginprobe.com/plugins/betterdocs/3.5.3/raw/views/templates/parts/content.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.5.3/code/views/templates/parts/content.php#L10-L20`.

```php
<?php

$content = apply_filters( 'the_content', get_the_content() );

$_htags = $_enable_toc = null;

if( isset( $htags ) ) {
    $_htags = $htags;
}
if( isset( $enable_toc ) ) {
    $_enable_toc = $enable_toc;
}

echo betterdocs()->template_helper->content( $content, $_htags, $_enable_toc );

```
