mirror of
https://github.com/NamelessMC/Nameless
synced 2026-08-18 06:29:04 -04:00
20 lines
559 B
PHP
20 lines
559 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
class RenderContentEvent extends AbstractEvent {
|
||
|
|
|
||
|
|
public string $content;
|
||
|
|
public bool $skip_purify;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param string $content The content to render.
|
||
|
|
* @param bool $skip_purify Whenever to skip purification of the content, When false it will remove any dangerous html/scripts
|
||
|
|
*/
|
||
|
|
public function __construct(string $content, bool $skip_purify = false) {
|
||
|
|
$this->content = $content;
|
||
|
|
$this->skip_purify = $skip_purify;
|
||
|
|
}
|
||
|
|
|
||
|
|
public static function internal(): bool {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
}
|