Stories
Slash Boxes
Comments

Slash Open Source Project

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.
  • by glorat (2431) on Thursday May 23 2002, @12:36PM (#4877) Homepage
    For those that want the "plain old text" style submissions check out saveSub in submit.pl. The line of interest is

    $form->{story} = strip_html(url2html($form->{story}));

    I reckon changing that to strip_plaintext will do what you want it. I believe plaintext still accepts html but also converts valid html tags. And for those wanting to make the proper patch, that's the place to look. It will be roughly around line 419 of submit.pl. Also look at Slash::Utility::Data for available filters. The POD lists the available ones

    Good luck to the patcher =P