diff --git a/lib/Util/pQuery/pQuery.php b/lib/Util/pQuery/pQuery.php new file mode 100644 index 0000000000..58d6be8603 --- /dev/null +++ b/lib/Util/pQuery/pQuery.php @@ -0,0 +1,27 @@ +root; + } +} + +class Html5Parser extends \pQuery\HtmlParser { + var $root = 'MailPoet\Util\pQuery\DomNode'; +} + +class DomNode extends \pQuery\DomNode { + var $childClass = 'MailPoet\Util\pQuery\DomNode'; + + function getInnerText() { + return html_entity_decode($this->toString(true, true, 1), ENT_QUOTES | ENT_HTML5, 'UTF-8'); + } + + function getOuterText() { + return html_entity_decode($this->toString(), ENT_QUOTES | ENT_HTML5, 'UTF-8'); + } +} \ No newline at end of file