I can recreate my system from backup in
Seconds Minutes Hours Days Weeks Never tested Never backed up ( 459 votes ~ 6 comments )
You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.
To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.
This is the comment you were replying to, attached to the weblog New formatting options
#6 Re: New formatting options Posted by Steve (80.68.xx.xx) on Thu 1 Feb 2007 at 09:56 I'm using the Text::Textile Perl module (this site is 100% perl-based!) so almost anything supported by that should be allowed. The process works like this: Text entry. Conversion to HTML via the Text::Textile module. Filtering to avoid javascript injection, and prohibited tags. Insertion/Display. I might be filtering things out at step 3, but otherwise I'd expect everything to work correctly. I'll take a look at the dashing options and the centering - I'm pretty sure centering is something which is being filtered, on the basis that I don't explicitly allow it and it hasn't ever seemed important before! As for the on-the-fly conversion, not yet. It does make sense but first I'd have to retroactively add a "comment type" column to the comments table - and for the moment it seems simplest to leave everything in the database as HTML and not treat textile/anything else specially. (Perhaps in retrospect it was a bad decision to store comments as HTML in the database, but at least it wasn't my decision ;) Thanks very much for taking the time to test it. Steve
I'm using the Text::Textile Perl module (this site is 100% perl-based!) so almost anything supported by that should be allowed.
The process works like this:
I might be filtering things out at step 3, but otherwise I'd expect everything to work correctly. I'll take a look at the dashing options and the centering - I'm pretty sure centering is something which is being filtered, on the basis that I don't explicitly allow it and it hasn't ever seemed important before!
As for the on-the-fly conversion, not yet. It does make sense but first I'd have to retroactively add a "comment type" column to the comments table - and for the moment it seems simplest to leave everything in the database as HTML and not treat textile/anything else specially.
(Perhaps in retrospect it was a bad decision to store comments as HTML in the database, but at least it wasn't my decision ;)
Thanks very much for taking the time to test it.
Steve
Posting Format:
Inappropriate comments will be removed.
Some help on entry formatting is available
Username:
Password:
[ Advanced Login ]
Register Account