X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=showmore%2Fshowmore.php;h=a9d8334f3e41dea7532d2df1d11599cf95fb2a70;hb=02b2fe9b1082c84d49582c4bc1dc4d746c12fc45;hp=de8c2f0740eca7bb9c8af9daab40154289641551;hpb=27a924f286534cfb167317c64d6f4d5f374593dd;p=friendica-addons.git diff --git a/showmore/showmore.php b/showmore/showmore.php index de8c2f07..a9d8334f 100755 --- a/showmore/showmore.php +++ b/showmore/showmore.php @@ -34,8 +34,14 @@ function showmore_addon_settings(&$a,&$s) { if(!$chars) $chars = '1100'; - $s .= '
'; + $s .= ''; $s .= '

' . t('"Show more" Settings').'

'; + $s .= '
'; + $s .= ''; @@ -77,7 +83,7 @@ function get_body_length($body) { // We need to get rid of hidden tags (display: none) // Get rid of the warning. It would be better to have some valid html as input - $dom = DomDocument::loadHTML($body); + $dom = @DomDocument::loadHTML($body); $xpath = new DOMXPath($dom); /* @@ -115,9 +121,9 @@ function showmore_prepare_body(&$a,&$b) { if($found) { $rnd = random_string(8); - $b['html'] = ''.$shortened." ". - ''.sprintf(t('show more')).''. - ''; + $b['html'] = ''.$shortened." ". + ''.sprintf(t('show more')).''. + ''; } }