Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
c383bcc4
Commit
c383bcc4
authored
May 05, 2009
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/export/html/lib.php
View file @
c383bcc4
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment