aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/textprocessors/HtmlProcessor.php
diff options
context:
space:
mode:
Diffstat (limited to 'ratatoeskr/sys/textprocessors/HtmlProcessor.php')
-rw-r--r--ratatoeskr/sys/textprocessors/HtmlProcessor.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/ratatoeskr/sys/textprocessors/HtmlProcessor.php b/ratatoeskr/sys/textprocessors/HtmlProcessor.php
new file mode 100644
index 0000000..c3f691b
--- /dev/null
+++ b/ratatoeskr/sys/textprocessors/HtmlProcessor.php
@@ -0,0 +1,20 @@
+<?php
+
+
+namespace r7r\cms\sys\textprocessors;
+
+/**
+ * A simple textprocessor that assumes the input already is HTML.
+ */
+class HtmlProcessor implements Textprocessor
+{
+ public function apply(string $input): string
+ {
+ return $input;
+ }
+
+ public function showInBackend(): bool
+ {
+ return true;
+ }
+}