Hey, evil dead, you're in my seat.

Xander ,'First Date'


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.

To-do list


Topic!Cindy - Nov 12, 2004 11:48:06 am PST #8751 of 10000
What is even happening?

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.


§ ita § - Nov 12, 2004 2:06:51 pm PST #8752 of 10000
Well not canonically, no, but this is transformative fiction.

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.


§ ita § - Nov 12, 2004 2:25:39 pm PST #8753 of 10000
Well not canonically, no, but this is transformative fiction.

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>


Jon B. - Nov 12, 2004 2:31:21 pm PST #8754 of 10000
A turkey in every toilet -- only in America!

Whoa! That's very cool!


Tom Scola - Nov 12, 2004 2:58:44 pm PST #8755 of 10000
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

I would be interested in hearing how they finally got the damn thing installed, ita.


§ ita § - Nov 12, 2004 3:01:23 pm PST #8756 of 10000
Well not canonically, no, but this is transformative fiction.

They got updated RPMs from Plesk that cleared up the system version inconsistencies, and then the compilations worked just like advertised.


§ ita § - Nov 12, 2004 5:19:08 pm PST #8757 of 10000
Well not canonically, no, but this is transformative fiction.

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.


Jon B. - Nov 12, 2004 5:31:28 pm PST #8758 of 10000
A turkey in every toilet -- only in America!

We could have it send a tsk-tsk note to the poster's profile email. ;)


§ ita § - Nov 12, 2004 5:32:00 pm PST #8759 of 10000
Well not canonically, no, but this is transformative fiction.

Hee. God bless negative reinforcement.


Gus - Nov 12, 2004 8:25:13 pm PST #8760 of 10000
Bag the crypto. Say what is on your mind.

Thanks, ita. I'm on it. Wrist-slap comments in the code shouldn't be much of a problem, actually. I can just dump this [link] output inside a comment block.