]> BookStack Code Mirror - bookstack/blob - app/Entities/Models/HtmlDescriptionInterface.php
Merge branch 'v25-07' into development
[bookstack] / app / Entities / Models / HtmlDescriptionInterface.php
1 <?php
2
3 namespace BookStack\Entities\Models;
4
5 interface HtmlDescriptionInterface
6 {
7     /**
8      * Get the HTML-based description for this item.
9      * By default, the content should be sanitised unless raw is set to true.
10      */
11     public function descriptionHtml(bool $raw = false): string;
12
13     /**
14      * Set the HTML-based description for this item.
15      */
16     public function setDescriptionHtml(string $html, string|null $plaintext = null): void;
17 }