Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rowspan Colspan issue in differense #119

Open
kiranbariya opened this issue Apr 12, 2023 · 0 comments
Open

Rowspan Colspan issue in differense #119

kiranbariya opened this issue Apr 12, 2023 · 0 comments

Comments

@kiranbariya
Copy link

kiranbariya commented Apr 12, 2023

$html1='<table border="1" style="border-collapse:collapse"><thead><tr><td rowspan="2">HSN / SAC</td><td rowspan="2">Taxable Value (Rs.)</td><td colspan="2">Central Tax</td><td colspan="2">UT Tax</td><td colspan="2" style="display:none"></td><td rowspan="2">Total Tax (Rs.)</td></tr><tr><td>Rate</td><td>Amount (Rs.)</td><td>Rate</td><td>Amount (Rs.)</td><td style="display:none"></td><td style="display:none"></td></tr></thead><tbody><tr><td>1245</td><td>200.00</td><td><span style="display:none">RowcgstRt-</span>9.00%</td><td><span style="display:none">RowcgstAmt-</span>18.00</td><td><span style="display:none">RowugstRt-</span>5.00%</td><td><span style="display:none">RowugstAmt-</span>10.00</td><td style="display:none"></td><td style="display:none"></td><td><span style="display:none">TotRowTax-28.00';`

$html2='<table border="1" style="border-collapse:collapse"><thead><tr><td rowspan="2">HSN / SAC</td><td rowspan="2">Taxable Value (Rs.)</td><td colspan="2">Central Tax</td><td colspan="2" style="display:none"></td><td rowspan="2">Total Tax (Rs.)</td></tr><tr><td>Rate</td><td>Amount (Rs.)</td><td style="display:none"></td><td style="display:none"></td></tr></thead><tbody><tr><td>1245</td><td>200.00</td><td><span style="display:none">RowcgstRt-</span>9.00%</td><td><span style="display:none">RowcgstAmt-</span>18.00</td><td style="display:none"></td><td style="display:none"></td><td><span style="display:none">TotRowTax-</span>18.00</td></tr></tbody></table>';

echo "<h3>Using Caxy\HtmlDiff\HtmlDiff</h3>";
$htmlDiff = new Caxy\HtmlDiff\HtmlDiff($html1,$html2);
echo $content = $htmlDiff->build();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant