Last active
August 29, 2015 14:07
-
-
Save erwan/a393f555bb9b55c40f8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$results = $response->getResults(); | |
$doc = $results[0]; | |
// The resolver is defined here: | |
// https://github.com/prismicio/php-kit/blob/master/tests/Prismic/FakeLinkResolver.php | |
$resolver = new FakeLinkResolver(); | |
$html = $doc->getStructuredText("blog-post.body")->asHtml($resolver); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment