3
1
Back

(c) GitHub, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy The MIT License (MIT) Copyright (c) 2015 Aymerick JEHANNE Permission is hereby granted, free of charge, to any person obtaining a copy Copyright OpenJS Foundation and other contributors Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors This software is modified by someone else and passed on, we want $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Invisible Bread (make the bread visible if (preg_match("@.*(get_img_tags($xpath, "//div[@id='comicbody']//img", $article); $article['content'] = $matches[1]; } } Dead Philosophers.

New Pull Request