I am creating a large HTML document from fragments provided by users who have an annoying habit of distorting various ways. Browsers are strong enough and forgiving, but I want to be able to check and (ideally) fix any invalid HTML, if at all possible. For example:
<td><b>Title</td>
can reasonably be fixed on:
<td><b>Title</b></td>
Is there a way to make this easy in PHP?
html php parsing
Kruppe
source share