' . t('Use /expression/ to provide regular expressions') . '
';
$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')).''.
- '