diff --git a/src/Html/Renderables/Text.php b/src/Html/Renderables/Text.php
index f1a4410..4389d7f 100644
--- a/src/Html/Renderables/Text.php
+++ b/src/Html/Renderables/Text.php
@@ -18,6 +18,6 @@ final class Text implements Renderable
public function getHtml(): string
{
- return Escaper::htmlElementValue($text);
+ return Escaper::htmlElementValue($this->text);
}
}
diff --git a/src/Html/Sanitisation/CharacterFilter.php b/src/Html/Sanitisation/CharacterFilter.php
index 441bbb7..033e606 100644
--- a/src/Html/Sanitisation/CharacterFilter.php
+++ b/src/Html/Sanitisation/CharacterFilter.php
@@ -1,6 +1,6 @@