Skip to content
GitLab
Menu
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
002ecd87
Commit
002ecd87
authored
Jan 10, 2008
by
Clare Lenihan
Committed by
Clare Lenihan
Jan 10, 2008
Browse files
remove use of htmlentities which screws up for some characters(like ß)
parent
2bf6a0d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/interaction/forum/view.php
View file @
002ecd87
...
...
@@ -280,7 +280,7 @@ function setup_topics(&$topics) {
$more
=
true
;
}
$topic
->
body
=
strip_tags
(
$topic
->
body
);
$topic
->
body
=
html_entity_decode
(
$topic
->
body
);
$topic
->
body
=
html_entity_decode
(
$topic
->
body
);
// no things like only take up one character
// take the first 50 chars, then up to the first space (max length 60 chars)
if
(
strlen
(
$topic
->
body
)
>
60
)
{
$topic
->
body
=
substr
(
$topic
->
body
,
0
,
60
);
...
...
@@ -293,7 +293,7 @@ function setup_topics(&$topics) {
if
(
$more
)
{
$topic
->
body
.
=
'...'
;
}
$topic
->
body
=
html
entitie
s
(
$topic
->
body
);
$topic
->
body
=
html
specialchar
s
(
$topic
->
body
);
$topic
->
lastposttime
=
relative_date
(
get_string
(
'strftimerecentrelative'
,
'interaction.forum'
),
get_string
(
'strftimerecent'
),
$topic
->
lastposttime
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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