Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tvgids
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
tvgids
Commits
1d22821f
Commit
1d22821f
authored
Feb 23, 2014
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added line break to allowed tags in details page
parent
42d962d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
details.php
details.php
+1
-1
No files found.
details.php
View file @
1d22821f
...
...
@@ -47,7 +47,7 @@ $page = file_get_contents($url);
// Parse detailed description, preserving a selected set of HTML tags
preg_match
(
'/<div\s+id="prog-content">\s*(.*?)\s*<div\s+class="prog-functionbar">/s'
,
$page
,
$m1
);
assert
(
$m1
);
$description
=
strip_tags
(
$m1
[
1
],
'<p><strong><em><b><i><font><a><span><img>'
);
$description
=
strip_tags
(
$m1
[
1
],
'<p><strong><em><b><i><font><a><span><img>
<br>
'
);
$description
=
str_replace
(
'showVideoPlaybutton()'
,
''
,
$description
);
$description
=
clean_html
(
$description
);
//$description = preg_replace('/\s+/', ' ', $description);
...
...
Write
Preview
Markdown
is supported
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