1<?php 2 3declare(strict_types=1); 4 5namespace Sabre\DAV\Browser; 6 7/** 8 * WebDAV properties that implement this interface are able to generate their 9 * own html output for the browser plugin. 10 * 11 * This is only useful for display purposes, and might make it a bit easier for 12 * people to read and understand the value of some properties. 13 * 14 * @copyright Copyright (C) fruux GmbH (https://fruux.com/) 15 * @author Evert Pot (http://evertpot.com/) 16 * @license http://sabre.io/license/ Modified BSD License 17 */ 18interface HtmlOutput 19{ 20 /** 21 * Generate html representation for this value. 22 * 23 * The html output is 100% trusted, and no effort is being made to sanitize 24 * it. It's up to the implementor to sanitize user provided values. 25 * 26 * The output must be in UTF-8. 27 * 28 * The baseUri parameter is a url to the root of the application, and can 29 * be used to construct local links. 30 * 31 * @return string 32 */ 33 public function toHtml(HtmlOutputHelper $html); 34} 35