2 namespace TYPO3\CMS\Fluid\Core\ViewHelper;
95 $this->content = $tagContent;
117 if ($this->content === null) {
120 return $this->content !==
'';
144 return array_key_exists($attributeName, $this->attributes);
159 return $this->attributes[$attributeName];
182 public function addAttribute($attributeName, $attributeValue, $escapeSpecialCharacters =
true)
184 if ($escapeSpecialCharacters) {
185 $attributeValue = htmlspecialchars($attributeValue);
187 $this->attributes[$attributeName] = $attributeValue;
200 foreach ($attributes as $attributeName => $attributeValue) {
201 $this->
addAttribute($attributeName, $attributeValue, $escapeSpecialCharacters);
214 unset($this->attributes[$attributeName]);
227 $this->attributes = array();
239 if (empty($this->tagName)) {
243 foreach ($this->attributes as $attributeName => $attributeValue) {
244 $output .=
' ' . $attributeName .
'="' . $attributeValue .
'"';
247 $output .=
'>' . $this->content .
'</' . $this->tagName .
'>';