Results 1 to 2 of 2

Thread: add full stops and new line after full stop

  1. #1
    Join Date
    May 2012
    Posts
    210
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default add full stops and new line after full stop

    Hi

    I am not sure if this is possible but I am using opencart 2.0.3.1 for a clients site and the product description is being pulled in from a excel spreadsheet but there are no full stops or line breaks so the content is one long sentence and looks confusing so was seeing if there was some way using php or javascript that full stops could be added and then after each full stop that a new line could be added or if there is some other alternative, an example URL is below, the product description is being wrapped in p tags

    https://www.onestopappliances.co.uk/...-machine-white

    see the description tab

    Thank you in advance
    Last edited by ianhaney; 04-20-2017 at 09:23 PM.

  2. #2
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    432
    Thanks
    0
    Thanked 54 Times in 50 Posts

    Default

    The description on those pages look as though they are wrapped in <div>...</div> tags and not <p>...</p> tags, so I think you are writing about a different page. Adding full-stops and line breaks is easy in PHP. Just use the concatenation operator:

    Code:
    echo $string . ".<br />";

Similar Threads

  1. Full Page design
    By pablod in forum CSS
    Replies: 1
    Last Post: 07-06-2011, 05:10 PM
  2. Full refresh in IE
    By Furious Mo in forum HTML
    Replies: 3
    Last Post: 04-20-2010, 08:13 PM
  3. is my database full?
    By liamallan in forum MySQL and other databases
    Replies: 5
    Last Post: 03-11-2010, 10:35 PM
  4. how to specify full url of ajax.
    By pankaj.ghadge in forum JavaScript
    Replies: 0
    Last Post: 11-03-2008, 01:03 PM
  5. Full-Screen Pop-Up.
    By Moglizorz in forum HTML
    Replies: 5
    Last Post: 04-22-2007, 01:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •