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
open-source
MetaGer
Commits
c046a6ca
Commit
c046a6ca
authored
Sep 18, 2018
by
Dominik Hebeler
Browse files
Anzeigelink weiter optimiert
parent
4f08b3c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Models/Result.php
View file @
c046a6ca
...
...
@@ -35,7 +35,7 @@ class Result
$this
->
titel
=
strip_tags
(
trim
(
$titel
));
$this
->
link
=
trim
(
$link
);
$this
->
anzeigeLink
=
trim
(
$anzeigeLink
);
$this
->
anzeigeLink
=
preg_replace
(
"/http[s]
{
0,1}:\/\/(www\.){0,1
}
/si"
,
""
,
$this
->
anzeigeLink
);
$this
->
anzeigeLink
=
preg_replace
(
"/
(
http[s]
{
0,1}:\/\/
){0,1}
(www\.){0,1
}
/si"
,
""
,
$this
->
anzeigeLink
);
$this
->
descr
=
strip_tags
(
trim
(
$descr
),
'<p>'
);
$this
->
descr
=
preg_replace
(
"/
\n
+/si"
,
" "
,
$this
->
descr
);
$this
->
longDescr
=
$this
->
descr
;
...
...
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