Commit c383bcc4 authored by Nigel McNie's avatar Nigel McNie
Browse files

Strip any forms out of the HTML export, they're irrelevant.

Mostly this is to cheaply get rid of the wall post form.
parent ab44a42d
......@@ -412,10 +412,13 @@ class HtmlExportOutputFilter {
'#<script[^>]*>.*?</script>#si',
// Fix simlies from tinymce
'#<img src="(' . $wwwroot . ')?/?js/tinymce/plugins/emotions/images/([^"]+)"([^>]+)>#',
// No forms
'#<form[^>]*>.*?</form>#si',
),
array(
'',
'<img src="' . $this->basepath . '/static/smilies/$2"$3>',
'',
),
$html
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment