Added a setDomNodeContents() helper method.
All entity loading and rendering wrapped into try-catch block.
Cannot typehint on DOMNode since $node in this case is actually DOMElement.
Fixed variable misname.
Use entity_embed as exception type instead of
Merge pull request #12 from cs-shadow/8.x-1.x

All entity loading and rendering wrapped into try-catch block.
Merge branch '8.x-1.x' into dom-replace-method

Conflicts:
	lib/Drupal/entity_embed/Plugin/Filter/EntityEmbedFilter.php
Use protected for setDomNodeContent().
Merge pull request #11 from drupal-media/dom-replace-method

Added a setDomNodeContent() helper method to simplify process().
Merge branch '8.x-1.x' into core-2217877-applied

Conflicts:
	lib/Drupal/entity_embed/Plugin/Filter/EntityEmbedFilter.php