You are here

protected function Html5Test::cycle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/test/HTML5/Html5Test.php \Masterminds\HTML5\Tests\Html5Test::cycle()

Parse and serialize a string.

7 calls to Html5Test::cycle()
Html5Test::testAttributes in vendor/masterminds/html5/test/HTML5/Html5Test.php
Html5Test::testCDATA in vendor/masterminds/html5/test/HTML5/Html5Test.php
Html5Test::testComment in vendor/masterminds/html5/test/HTML5/Html5Test.php
Html5Test::testElements in vendor/masterminds/html5/test/HTML5/Html5Test.php
Html5Test::testEntities in vendor/masterminds/html5/test/HTML5/Html5Test.php

... See full list

File

vendor/masterminds/html5/test/HTML5/Html5Test.php, line 15

Class

Html5Test

Namespace

Masterminds\HTML5\Tests

Code

protected function cycle($html) {
  $dom = $this->html5
    ->loadHTML('<!DOCTYPE html><html><body>' . $html . '</body></html>');
  $out = $this->html5
    ->saveHTML($dom);
  return $out;
}