Barryvdh\Snappy\PdfWrapper::loadHTML PHP Method

loadHTML() public method

Load a HTML string
public loadHTML ( string $string )
$string string
    public function loadHTML($string)
    {
        $this->html = (string) $string;
        $this->file = null;
        return $this;
    }

Usage Example

Beispiel #1
0
 /**
  * Load a HTML string
  *
  * @param string $string
  * @return static 
  * @static 
  */
 public static function loadHTML($string)
 {
     return \Barryvdh\Snappy\PdfWrapper::loadHTML($string);
 }