Changeset 84

Show
Ignore:
Timestamp:
04/25/06 14:08:59 (3 years ago)
Author:
fabien
Message:

escaped questions and answers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/model/Answer.php

    r61 r84  
    3636 
    3737    require_once('markdown.php'); 
     38 
     39    // strip all HTML tags 
     40    $v = htmlentities($v, ENT_QUOTES, 'UTF-8'); 
    3841 
    3942    $this->setHtmlBody(markdown($v)); 
  • trunk/lib/model/Question.php

    r69 r84  
    3030    require_once('markdown.php'); 
    3131 
     32    // strip all HTML tags 
     33    $v = htmlentities($v, ENT_QUOTES, 'UTF-8'); 
     34 
    3235    $this->setHtmlBody(markdown($v)); 
    3336  }