Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6669295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:07:58+00:00 2026-05-26T03:07:58+00:00

I need there to be two spaces after every period in every sentence in

  • 0

I need there to be two spaces after every period in every sentence in our entire site (don’t ask).

One way to do it is to embark on manually adding a &nbsp  after every single period. This will take several hours.

We can’t just find and replace every period, because we have concatenations in PHP and other cases where there is a period and then a space, but it’s not in a sentence.

Is there a way to do this…and everything still work in Internet Explorer 6?

[edit] – The tricky part is that in the code, there are lines of PHP that include dots with spaces around them like this:

<?php echo site_url('/css/' . $some_name .'.css');?>

I definitely don’t want extra spaces to break lines like that, so I would be happy adding two visible spaces after each period in all P tags.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:07:59+00:00Added an answer on May 26, 2026 at 3:07 am

    You might be able to use the JavaScript split method or regex depending on the scope of the text.

    Here’s the split method:

    var el = document.getElementById("mydiv");
    if (el){
        el.innerText = el.innerText.split(".").join(".\xA0 ");   
    }
    

    Test case:

    Hello world.Insert spaces after the period.Using the split method.

    Result:

    Hello world. Insert spaces after the period. Using the split method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

what I need: - there are two images: a background (large) and a proifile
There are two unsorted lists containing Integers, need to find the common largest integer
I need to merge two SELECT statements. There are two tables in my database,
I need a url for using that for a template. Now there are two
I need a library to handle JSON objects in Ruby. There are two gems
I need to join two JPA entities on a property when there is no
I need to solve such a problem. There is a base class and two
We've run across a slightly odd situation. Basically there are two tables in one
I've got a custom view in which I need to draw two bitmaps, one
I'm in need of (probably) regexp (or two) to do following: replace every space

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.