We should have known by the name...
Buffistas Building a Better Board
Do you have problems, concerns or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.
He wasn't blocked at all, he Fell Into Shadow.
Flee, you fools!
He was taken by both shadow and flame. A balrog of Morgoth. For we went needlessly into the net of Moria. But with the filter--balrog? Blinvisible.
Tidy is installed, Gus. Note, it is not the tidy documented here. Since we're at 4.3.8, I guess. It is the tidy not really documented here.
I can verify that
<?php
$html = '<b><i>test</p></table>';
$tidy = tidy_repair_string($html);
print_r($tidy);
?>
this:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title></title>
</head>
<body>
<b><i>test<br>
<br></i></b>
</body>
</html>
So we'd need to dial that down a wee bit.
Okay, I found the configuration -- and you can kinda use both docs, it seems.
$html = '<b><i>test</p></table>';
$config = array('show-body-only' => true);
$tidy = tidy_repair_string($html,$config);
gives
<b><i>test<br>
<br></i></b>
Whoa! That's very cool!
I would be interested in hearing how they finally got the damn thing installed, ita.
They got updated RPMs from Plesk that cleared up the system version inconsistencies, and then the compilations worked just like advertised.
My thinking is that after we've parsed the quickedits into HTML, we then pass the result through tidy -- making sure our parsing makes nice and compliant HTML.
In fact, with the tidy library, you can run it through and see if it has errors, and put a little tsk-tsk note where the poster can see it.
Or not -- it was an idea that amused me, but we're not here to teach HTML, especially if we can neatly recover from messes.