Can now export HTML - dangerous characters are converted to entities.

This commit is contained in:
thepurpleblob
2004-12-13 11:37:45 +00:00
parent e35d275e1f
commit ca6477c5ac
+2 -3
View File
@@ -134,9 +134,8 @@ function get_qtype( $type_id ) {
function writetext( $raw ) {
// generates <text></text> tags, processing raw text therein
// for now, don't allow any additional tags in text
// otherwise xml rules would probably get broken
$raw = strip_tags( $raw );
// encode the text to 'disguise' HTML content
$raw = htmlspecialchars( $raw );
return "<text>$raw</text>\n";
}