I've four type of data originating from database.But display section have to implement the design and style for the reason that paragraph.

For instance:

We’ve discovered that hosting a podcast while operating a business is much more helpful than you may think — since it enables you to definitely introspect on your personal ideas and choices and possess a history explaining the reason why you made individuals bad choices at that time. Even should you have only 10 audience, and something of these is the father.

This is actually the data originating from database.

In display section should display..

We’ve discovered that hosting a podcast while operating a business is much more helpful than you may think — since it enables you to definitely introspect on your personal ideas and choices and possess a history explaining the reason why you made individuals bad choices at that time.

Please be aware:Even when you simply have 10 audience, and one of these is the father.

How you can alter the style for 4g iphone line within the paragraph ?How you can place web coding within the last line ?

Please produce your solutions.

Thanks

Could not you keep whole paragraph as HTML formatted text within the DB? Whomever accounts for creating the written text would need to HTML format it.

What you devote really dictates what you'll get then back out again. If you would like paragraph marks along with other HTML markup, you have to either make sure that individuals are incorporated once the information is written towards the database, or possess a reliable approach to putting formatting in.

You may have the ability to place HTML markup according to certain rules using JavaScript or server-side code, although I can not think about a trusted, consistent algorithm that may apply.

In a nutshell, I want to re-think your computer data needs. You are making existence particularly a hardship on yourself at this time.

I you simply desire to take away the last sentence and you're simply using php :

$regex = 'We\'ve found that hosting a podcast while running a business is
more useful than you might think — because it allows you to introspect on your 
own thoughts and decisions and have a history explaining why you made those 
bad decisions at the time. Even if you only have 10 listeners, and one of 
them is your dad.';

preg_match_all('/\./',$regex,$match);

$count = count($match[0]);

if($count > 1)

{

    $str =  explode('.',$regex);

    $string = '';

    for($i = 0; $i < $count-1; $i++){

        $string .= $str[$i] . '.';

    }

    $change = str_replace ($string, '', $regex);

    echo $string . ' whatever ' . $change . ' whatever ';

} else {

echo 'There is only one sentence.';

}

But as Phil.Wheeler mentioned this really is not so reliable, i.e. in case your last sentence finishes in '...' or includes a single '.' inside it, aside from the ultimate "full stop", this can not work.

Exactly the same can be done with javascript, jquery varieties