Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Provides a simple dom access library for eZPublish (simplehtmldom) and bonus features !

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 autoloads
Octocat-spinner-32 classes
Octocat-spinner-32 doc
Octocat-spinner-32 settings
Octocat-spinner-32 README.md
Octocat-spinner-32 extension.xml
README.md

OWSimpleDom

Provides a simple dom access library for eZPublish (simplehtmldom) and bonus features !

Usage

  1. You need to declare a new owSimpleDom object
  2. You can use SimpleHTMLDom functions

Example

$owSimpleDom = new owSimpleDom();
$html_dom = str_get_html( $html );

About SimpleHTMLDom

Online documentation of SimpleHTMLDom : http://simplehtmldom.sourceforge.net/manual.htm

Bonus operators

css_inline

It provides a simple css inliner for your mailing.

Warning : It doesn't support css selector priority (for example : "#id .class" won't override ".class". You need to declare CSS rules in the order you want them applied)

{set-block variable=$html}
    <h3>Title</h3>
    <div class="example"><p>Content</p></div>
{/set-block}
{$html|css_inline('stylesheets/style.css'|ezdesign(no))}
Something went wrong with that request. Please try again.