filter html before anything else

git-svn-id: file:///home/shish/svn/shimmie2/trunk@694 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2008-01-12 07:44:08 +00:00
parent 52bdd38cfd
commit 0e4e5f02c8
2 changed files with 4 additions and 7 deletions

View File

@@ -223,9 +223,10 @@ class TextFormattingEvent extends Event {
var $stripped;
public function TextFormattingEvent($text) {
$this->original = $text;
$this->formatted = $text;
$this->stripped = $text;
$h_text = html_escape(trim($text));
$this->original = $h_text;
$this->formatted = $h_text;
$this->stripped = $h_text;
}
}