diff options
author | redmatrix <git@macgirvin.com> | 2016-04-26 16:14:10 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-26 16:14:10 -0700 |
commit | 509f25e46a37d7fae1a2d1934c6143e96aa6497d (patch) | |
tree | 900e91ef3e02863cd16cc34f5ceae2c5bf5a9e0b /include/text.php | |
parent | f99daf8ff9b3cd9c0ad61f9fcfec04c6c4042a59 (diff) | |
parent | 607125e795ca624fe6d3ee83acdd65e3100a22a4 (diff) | |
download | volse-hubzilla-509f25e46a37d7fae1a2d1934c6143e96aa6497d.tar.gz volse-hubzilla-509f25e46a37d7fae1a2d1934c6143e96aa6497d.tar.bz2 volse-hubzilla-509f25e46a37d7fae1a2d1934c6143e96aa6497d.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/include/text.php b/include/text.php index 0a7f84b01..926e2eed6 100644 --- a/include/text.php +++ b/include/text.php @@ -1532,35 +1532,6 @@ function prepare_body(&$item,$attach = false) { $s = sslify($s); - // Look for spoiler - $spoilersearch = '<blockquote class="spoiler">'; - - // Remove line breaks before the spoiler - while ((strpos($s, "\n".$spoilersearch) !== false)) - $s = str_replace("\n".$spoilersearch, $spoilersearch, $s); - while ((strpos($s, "<br />".$spoilersearch) !== false)) - $s = str_replace("<br />".$spoilersearch, $spoilersearch, $s); - - while ((strpos($s, $spoilersearch) !== false)) { - - $pos = strpos($s, $spoilersearch); - $rnd = random_string(8); - $spoilerreplace = '<br /> <span id="spoiler-wrap-'.$rnd.'" style="white-space:nowrap;" class="fakelink" onclick="openClose(\'spoiler-'.$rnd.'\');">'.sprintf(t('Click to open/close')).'</span>'. - '<blockquote class="spoiler" id="spoiler-'.$rnd.'" style="display: none;">'; - $s = substr($s, 0, $pos).$spoilerreplace.substr($s, $pos+strlen($spoilersearch)); - } - - // Look for quote with author - $authorsearch = '<blockquote class="author">'; - - while ((strpos($s, $authorsearch) !== false)) { - $pos = strpos($s, $authorsearch); - $rnd = random_string(8); - $authorreplace = '<br /> <span id="author-wrap-'.$rnd.'" style="white-space:nowrap;" class="fakelink" onclick="openClose(\'author-'.$rnd.'\');">'.sprintf(t('Click to open/close')).'</span>'. - '<blockquote class="author" id="author-'.$rnd.'" style="display: block;">'; - $s = substr($s, 0, $pos).$authorreplace.substr($s, $pos+strlen($authorsearch)); - } - $prep_arr = array( 'item' => $item, 'photo' => $photo, |