Welcome! » Log In » Create A New Profile

Adding an element

Posted by dboro 
dboro
Adding an element
July 16, 2015 04:41AM
        $elm = $def->addElement(
          'g',    // name
          'Block',  // content set
          'Flow',   //allowed children
          'Common', // attribute collection
        );
        $elm->excludes = array('g' => true);

Before filtration: <svg> <g> <g></g> </g> </svg>

After filtration: <svg> <g> </g> </svg>

How to get aftet "<svg> <g> <g></g> </g> </svg>"?

Sorry, you do not have permission to post/reply in this forum.