I have a table stored in an HTML file and I want to insert that into a WordPress page. I used echo file_get_contents('table.html')
but it didn't display anything. Then I tried echo htmlentities (file_get_contents('table.html'))
. This just outputs the HTML code into the page but does not render it. How do I make the table display correctly ?
HTML table is something like:
<table class="fao-pricing-table-additional">
<tr>
<th class="fao-table-plan-details-header" rowspan="2">Plan Details</th>
<th class="fao-table-plan-starter-header">STARTER</th>
<th class="fao-table-plan-business-header">BUSINESS</th>
<th class="fao-table-plan-enterprise-header">ENTERPRISE</th>
<th class="fao-table-plan-corporate-header">CORPORATE</th>
</tr>
<tr>.......