", "

"); $inlinetags = array('em', 'strong'); // Clean-up teaser a little to make it easier to process $paragraph = trim($paragraph); $paragraph = str_replace(" ", " ", $paragraph); $paragraph = str_replace("\n", "", $paragraph); $paragraph = str_replace("\r", "", $paragraph); $paragraph = str_replace(" ", " ", $paragraph); foreach ($blocktags as $endtag) { $starttag = str_replace('/', '', $endtag); $paragraph = str_replace("$starttag ", $starttag, $paragraph); $paragraph = str_replace("$endtag ", $endtag, $paragraph); $paragraph = str_replace(" $starttag", $starttag, $paragraph); $paragraph = str_replace(" $endtag", $endtag, $paragraph); } $paragraph = str_replace("
", "
", $paragraph); $paragraph = str_replace("
", "
", $paragraph); // Because the "
" tag has a space in it, temporarily remove it $paragraph = str_replace("
", "
", $paragraph); // Make sure there's a space before "
" to register a new word $textfield = strtok($paragraph, " "); // Trim the text down to the nearest determined by $limit while($textfield) { $text .= " " . $textfield; $words++; // Check if the limit has been met if ($words >= $limit) { // Check if the last character in the token word is an End Punctuation. If not, move on to the next word foreach ($endpunctuation as $endmark) { if (substr($textfield, -1) == $endmark) { $endteaser = true; break; } } // Check if the last character in the token word is an end tag. If not, move on to the next word foreach ($blocktags as $endtag) { $endtag_textfield = strripos($textfield, $endtag); if ($endtag_textfield != false) { $endtagfind = strripos($text, $endtag); $text = substr($text, 0, $endtagfind); $text .= $endtag; $endteaser = true; break; } } // Check if the last character in the token word is a double breaker ("

"). If not, move on to the next $endtag = "

"; $endtag_textfield = strripos($textfield, $endtag); if ($endtag_textfield != false) { $endtagfind = strripos($text, $endtag); $text = substr($text, 0, $endtagfind); // Retrun the incorrect "
" tags to their proper form $text = str_replace("
", "
", $text); $endteaser = true; break; } if ($endteaser == true) { //echo $words; break; } else { $textfield = strtok(" "); } } else { $textfield = strtok(" "); } } $revtext = $text; $revtext = ltrim($revtext); $revtext = str_replace("
", "
", $revtext); // Check for an inline tag left open foreach ($inlinetags as $tag) { $tagstart_pos = strripos($revtext, "<$tag>"); $tagend_pos = strripos($revtext, ""); if ($tagstart_pos > $tagend_pos) { $revtext .= ""; } } // Check for a block-element tag left open foreach ($blocktags as $endtag) { $starttag = str_replace('/', '', $endtag); $brokentag = str_replace(' Brunstorps by i Säve | Gatunamn

Information om Brunstorps by

Brunstorps by ligger i Säve.

Postnummer som förekommer på Brunstorps by är 42370, 42370, 42370, 42370, 42370, 42370, 42370, 42370, 42370, 42370.

Bloggare som skriver om "Brunstorps by ":
Hittade inga blogginlägg
Laddar..
Skapad av Triop AB
0.04677 sec