Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationLatte
      • ApplicationTracy
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsLatte
      • Framework
      • HttpTracy
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy

Classes

  • Html

Interfaces

  • IHtmlString
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Latte (https://latte.nette.org)
 5:  * Copyright (c) 2008 David Grudl (https://davidgrudl.com)
 6:  */
 7: 
 8: namespace Latte\Runtime;
 9: 
10: use Latte;
11: 
12: 
13: /**
14:  * HTML literal.
15:  *
16:  * @author     David Grudl
17:  */
18: class Html extends Latte\Object implements IHtmlString
19: {
20:     /** @var string */
21:     private $value;
22: 
23: 
24:     public function __construct($value)
25:     {
26:         $this->value = (string) $value;
27:     }
28: 
29: 
30:     /**
31:      * @return string
32:      */
33:     public function __toString()
34:     {
35:         return $this->value;
36:     }
37: 
38: }
39: 
Nette 2.2 API documentation generated by ApiGen 2.8.0