Weblog

Some tags allowed in comments

Yesterday I finished a modification in my content management system, thanx to a lot of help from Dan to solve a regular expression problem. Now users can add the following tags to their comments: p, a, em, strong, pre, code.

I recommend using the paragraph tag to open and close text blocks, text will show up nicely. If you want to add code inline (inside a paragraph) simply use the code tag, the script will handle the entities. If you want the code block to respect line breaks you will need to use <pre><code>your code</ code></pre> outside the paragraph (pre acts as block). Any other code or tag not inside code tags will be destroyed.

Comments on this entry

  1. 2004-11-18 07:40:36

    testing shit:

    
    if (document.getElementsByTagName && !window.opera) { 
    Extras.addEvent(window, "load", TextareaEnhacer.start, false);
    }
    

    or more shit

    
    <script type="text/javascript" src="/v3/js/addons.js"></script>
    <script type="text/javascript" src="/v3/js/zoom.js"></script>
    
  2. 2004-11-18 07:42:07

    testing shit (take 2) if (document.getElementsByTagName && !window.opera) { Extras.addEvent(window, "load", TextareaEnhacer.start, false); }

Closed

Due to spam bullshit this weblog has been closed to comments, it was impossible to keep my blacklist script updated. You can still figure out my email and send me your message. Sorry.

Change preferences

Change preferences

License

Creative Commons 2001-2004. Sergi Meseguer

RSS syndication

rss (1, 2 ), xhtml, css, taw