Enclosed Value
' => 'Enclosed Value
', '' => '', '' => '', 'ö ß ā い 家
'); $this->assertEquals('ö ß ā い 家
', $value->getContent()); } public function testInvalidHTMLTagNames() { $value = new HTML4Value(); $invalid = [ '', 'paragraph
\nparagraph
\nThis is valid
'); $this->assertEquals('This is valid
', $value->getContent(), "Valid content is returned"); $value->setContent('valid is false // for instance if a content editor saves something really weird in a LiteralField // we can manually get to this state via ->setInvalid() $value->setInvalid(); $this->assertEquals('', $value->getContent(), "Blank string is returned when invalid"); } }