I asked a question similar to this recently, but I believe this is a different question.
IE, Safari and Chrome break hyphened words at the end of a line. Firefox will break hyphened words at the end of a line but will no leave 4 or less characters on the previously line. Instead it will drop the hyphened word to the next line.
I would like to use function.php to prevent a phone# (123) 456-7890 from breaking at the hyphen (between two numbers) when it reaches the end of a line in IE, safari and chrome . I have tried this and similar ways without success:
function non_breaking_telhyp($content){
return str_replace('[0-9]-[0-9]', '[0-9]- [0-9]', $content);
}
add_filter('the_content', 'non_breaking_telhyp');
Thank you for your time Jerry