Welcome to Squishdot Squishdot Websites How-To
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf
 main


Using the valid_tags property
How-To Posted by Chris Withers on Thursday March 22, @06:53PM
from the now-your-site-is-safe(r) dept.
Squishdot 1.0.0 enables you to limit what tags people can include in their postings. This article explains how...

Basically, you need to add a property called valid_tags, of type lines to your Squishdot Site object. The updater will do this for you.

This needs to contain one html tag per line, in lowercase, and without the angle brackets or /'s. You don't need to include the closing tag, if there is one.

These are that tags that won't be stripped from postings to the Squishdot Site. Everything else, along with JavaScript and other nasties will be stripped.

The default tags, if no valid_tags property is present, are b,a,i,br and p allowing you to do:
<B></B><A HREF=""></A><I></I><BR><P></P>

Big thanks to Itamar for providing the bulk of the code to do this :-)

Post Reply

Name
Email
Notify Notify me via email of responses to this message
Title
Comment
(Check those URLs! Don't forget the http://!)
Encoding
If none of the above mean anything to you, select 'Plain'!
Attachment
(You can attach a file to your reply which can then be retrieved by other readers.
Try to keep the file sizes below 500Kb in order to conserve network and server resources.)
Allowed HTML <B> <I> <P> <A> <LI> <OL> <UL> <EM> <BR> <TT> <HR> <STRONG> <BLOCKQUOTE> <DIV .*> <DIV> <P .*>
Important Stuff:
  • Note: Fields with bold titles are required.
  • Please try to keep posts on topic.
  • Try to reply to other people comments instead of starting new threads,
  • Read other people's messages before posting your own to avoid simply duplicating what has already been said.
  • Use a clear subject that describes what your message is about.
  • Please do not post offtopic, inflammatory, inappropriate, illegal, or offensive comments. Repeat offenders will be sanctioned.
  • Powered by Zope  Squishdot Powered
      "Any system that depends on reliability is unreliable." -- Nogg's Postulate
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 Butch Landingin, ©2000-2002 Chris Withers.