Gotcha, wasn't thinking straight. Turns out it doesn't really have to
be a legal-HTML attribute anyway, so I can just do:
str_replace(' wrote:
> So in other words; it's the library that you fix with wrapper
> functions, not the reports (outside the scope of using the library).
>
> On Thu, Mar 11, 2
So in other words; it's the library that you fix with wrapper
functions, not the reports (outside the scope of using the library).
On Thu, Mar 11, 2010 at 9:59 PM, Rene Veerman wrote:
> function readyForDOM_report($originalReportAsText) {
> return str_replace (' }
>
> $dom = new DOMDocument();
>
function readyForDOM_report($originalReportAsText) {
return str_replace ('loadHTML(readyForDOM_report($str));
$tables = $dom->getElementsByTagName("table");
$rows = $tables->item(0)->getElementsByTagName('tr');
foreach($rows as $row){
foreach($row->childNodes as $node)
// check $node f
I could could, but that would kind of defeat the point of the project
(I'm trying to capture a bunch of existing HTML reports via output
buffering and transform the tables into proper XLS. Tweaking every
single report is exactly what I'm trying to avoid).
On Thu, Mar 11, 2010 at 2:45 PM, Rene Veer
hmm lame bug... but you can add a classname to the s and check for that?..
On Thu, Mar 11, 2010 at 9:34 PM, Andy Theuninck wrote:
> I'm trying to parse a string containing an HTML table using the
> builtin DOM classes and running into an odd problem.
>
> Here's what I'm doing:
> $dom = new DOMDoc
I'm trying to parse a string containing an HTML table using the
builtin DOM classes and running into an odd problem.
Here's what I'm doing:
$dom = new DOMDocument();
$dom->loadHTML($str);
$tables = $dom->getElementsByTagName("table");
$rows = $tables->item(0)->getElementsByTagName('tr');
foreach($
6 matches
Mail list logo