Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replacing double space by a single

Status
Not open for further replies.

FederalProgrammer

Programmer
Jul 2, 2003
318
CA
I am grabbing a huge html text from a database and I have to strip off the unwanted junk before I can use the text:

Code:
$newsText = $row->news_text;
$newsText = str_replace("\'", "'", $newsText);
$newsText = str_replace("\"", '"', $newsText);
$newsText = str_replace("  ", " ", $newsText);

I print off the $newsText into a predefined area of my website; The only problem is I get a lot of "?" all over the place. Single quotes for example get replaced by "?". Also, double spaces get replaced by "?".
What am I doing wrong?


---------------
 
u're funny man!!
The code is right here... ALL OF IT :)
it's the 11th post (counting from top)... wow, reading, is not your best quality is it ;) hahah, I'm kiddin' dude ;)
 
FederalProgrammer said:
darn, almost... I'm trying a few permutations to see if it works... but no luck so far :(
So you've tired a few permutations after posting that code. Your permutations didn't change anything?

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
sure, it did ;)
It got rid of the text I was looking for;
Code:
$newsText = str_replace("<span style=" . '"' . "mso-spacerun: yes" . '"' .">  </span>", " ", $newsText);
$newsText = str_replace("<span style=" . '"' . "mso-spacerun: yes" . '"' ."> </span>", " ", $newsText);
but now, the user has just updated the site w/ another text with the wierd double quote... I've put the new "newsText" in this thread too. The code hasn't changed though ;)

ps, thanx for going over the thread ;)
 
FederalProgrammer said:
sure, it did ;)
FederalProgrammer said:
The code hasn't changed though ;)
I would prefer that you use fewer emoticons and answer more questions. Has or has not the code changed from what you have posted earlier in this thread?

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
here's the code:
Code:
<?
session_start();
if($_SESSION['logedin'] == 'yes')
{
	$head = 2; 
}
else 
{
	$head = 3;
	$_SESSION['logedin'] = 'no';
}
include('includes/head.php');
include('includes/functions.php');
include('includes/connect.php');

if (isset($_GET['nid']))
	$nid = $_GET['nid'];
else
{ 
	echo ("<span class='newstitle'>No article selected!!</span><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
						<BR><BR><BR><BR><BR><BR><BR><BR>");
	include('includes/foot.php');
	die();
}
$result = mysql_query("SELECT * FROM news WHERE news_id=$nid") or die(mysql_error());
if (mysql_affected_rows()>0)
{
	$row = mysql_fetch_object($result);
	print("<span class='newstitle'>$row->news_title</span>");
	print("<BR><BR><span class='newsdate'>" . date('M d, Y',$row->news_date) . "</span>");
	print("<p class='newstext'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
	$newsText = $row->news_text;
	
	$newsText = str_replace("\\'", "'", $newsText);
    $newsText = str_replace("\\\"", '"', $newsText);
	//$newsText = str_replace("\'", "'", $newsText);
	//$newsText = str_replace("\"", '"', $newsText);
	$newsText = str_replace("  ", " ", $newsText);
	$newsText = str_replace("<head>", "", $newsText);
	$newsText = str_replace("</head>", "", $newsText);
	$newsText = str_replace("<html>", "", $newsText);
	$newsText = str_replace("</html>", "", $newsText);
	$newsText = str_replace("<body>", "", $newsText);
	$newsText = str_replace("</body>", "", $newsText);
	$newsText = str_replace("&nbsp;", "<BR>", $newsText);
	$newsText = str_replace("&nbsp; ", "<BR>", $newsText);
	$newsText = str_replace(" &nbsp;", "<BR>", $newsText);
	$newsText = str_replace(" &nbsp; ", "<BR>", $newsText);
	//$newsText = str_replace("<span style=\\\"mso-spacerun: yes\\\">  </span>", " ", $newsText);
	//$newsText = str_replace("<span style=\"mso-spacerun: yes\">  </span>", " ", $newsText);
	$newsText = str_replace("<span style=" . '"' . "mso-spacerun: yes" . '"' .">  </span>", " ", $newsText);
	$newsText = str_replace("<span style=" . '"' . "mso-spacerun: yes" . '"' ."> </span>", " ", $newsText);
	
	
	$a = "<";//span";// style=";
	$b = "mso-spacerun: yes";
	$c = ">" . "  " . "" . '<span>';///span>";
	$d = $a . "\\\"" . $b . "\\\"" . $c;
	
	$newsText = str_replace($d, " ", $newsText);


	//echo "<span style=\"mso-spacerun: yes\">  </span>";
	//print ("<BR> A = " . $a);
	//print ("<BR> C = " . $c);
	//print ("<BR><BR><B> Testing... only Testing </b><BR>" . $a . "\\\"" . $b . "\\\""  . $c . "<BR><br><br><p>");
	
	//print(stripslashes($newsText));
	print($newsText);
	print("</p><BR><BR><BR><BR><BR>");
}
else 
{
	echo ("<span class='newstitle'>No articles found!!</span><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
						<BR><BR><BR><BR><BR><BR><BR><BR>");
	include('includes/foot.php');
	die();
}

echo ("<div class='form_submitrow'>
	   <div class='brownb'>
	   <img src='./images/brownb_left.gif' alt='Left' />
	   <a href='index.php'>Back to Main Page</a>
	   <img src='./images/brownb_right.gif' alt='Right' />
	   </div>
	  </div>");
?>

<? include('includes/foot.php'); ?>
 
and here's the text that's being grabbed from the DB:
Code:
<p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">Daily Market Update<span style=\"mso-spacerun: yes\">  </span></p><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\"> <p /></p><table style=\"BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: dashed white .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\"><tbody><tr><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: white 0.5pt dashed; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: white 0.5pt dashed; WIDTH: 88.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent\" valign=\"top\" width=\"118\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\"> <p /></p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: white 0.5pt dashed; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 60.85pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt\" valign=\"top\" width=\"81\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">Close</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: white 0.5pt dashed; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 81pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt\" valign=\"top\" width=\"108\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">Net Change</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: white 0.5pt dashed; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 1in; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt\" valign=\"top\" width=\"96\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">A/D Line</p></td><td style=\"BORDER-RIGHT: white 0.5pt dashed; PADDING-RIGHT: 5.4pt; BORDER-TOP: white 0.5pt dashed; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 1.95in; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt\" valign=\"top\" width=\"187\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">Net New Highs</p></td></tr><tr><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: white 0.5pt dashed; WIDTH: 88.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"118\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\"> <p /></p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 60.85pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"81\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\"> <p /></p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 81pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"108\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\"> <p /></p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 1in; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"96\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\"> <p /></p></td><td style=\"BORDER-RIGHT: white 0.5pt dashed; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 1.95in; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"187\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\"> <p /></p></td></tr><tr><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: white 0.5pt dashed; WIDTH: 88.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"118\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">Dow:</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 60.85pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"81\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">10216.91</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 81pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"108\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">-36.26</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 1in; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"96\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">-9</p></td><td style=\"BORDER-RIGHT: white 0.5pt dashed; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 1.95in; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"187\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">-11</p></td></tr><tr><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: white 0.5pt dashed; WIDTH: 88.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"118\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">S&amp;P 500:</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 60.85pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"81\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">1177.68</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 81pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"108\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">-7.19</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 1in; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"96\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">-239</p></td><td style=\"BORDER-RIGHT: white 0.5pt dashed; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 1.95in; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"187\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">-279</p></td></tr><tr><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: white 0.5pt dashed; WIDTH: 88.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"118\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">Nasdaq 100:</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 60.85pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"81\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">1521.19</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 81pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"108\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">-18.12</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 1in; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"96\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">-50</p></td><td style=\"BORDER-RIGHT: white 0.5pt dashed; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 1.95in; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.75pt solid; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"187\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">-43</p></td></tr><tr><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: white 0.5pt dashed; WIDTH: 88.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.5pt dashed; BACKGROUND-COLOR: transparent; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"118\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">Russell 2000:</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 60.85pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.5pt dashed; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"81\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">621.57</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 81pt; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.5pt dashed; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"108\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">-8.51</p></td><td style=\"BORDER-RIGHT: white 0.75pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 1in; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.5pt dashed; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"96\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">-1132</p></td><td style=\"BORDER-RIGHT: white 0.5pt dashed; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 1.95in; PADDING-TOP: 0in; BORDER-BOTTOM: white 0.5pt dashed; BACKGROUND-COLOR: transparent; mso-border-left-alt: solid white .75pt; mso-border-top-alt: solid white .75pt\" valign=\"top\" width=\"187\"><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\">-1536</p></td></tr></tbody></table><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\"> <p /></p><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\"> </p><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in 0pt\"><span style=\"FONT-SIZE: 12pt; FONT-FAMILY: \"Times New Roman\"; mso-fareast-font-family: \"Times New Roman\"; mso-ansi-language: EN-CA; mso-fareast-language: EN-US; mso-bidi-language: AR-SA\">Today saw very high volume but no large move.<span style=\"mso-spacerun: yes\">  </span>It was a down day on all indices, and the support level we have been watching on the S&amp;P 500 was breached, but not in a particularly decisive way.<span style=\"mso-spacerun: yes\">  </span>The reason it is not yet decisive has to do with the size of the move today.<span style=\"mso-spacerun: yes\">  </span>This level is obviously widely watched as evidenced by the volume traded here, but we would expect volume on the scale seen today to drive the market very strongly in one direction.<span style=\"mso-spacerun: yes\">  </span>As can be seen in the 5 minute chart of the S&amp;P 500 below, though there was a clear trend today, it was not a “falling off the cliff” kind of move that we would normally see when a long term support level is breached.<span style=\"mso-spacerun: yes\">  </span>There was buying to go along with the selling, so it seems there are some bulls out there yet in spite of the definite bearish technical slant and very negative market internals.</span></p><p><span style=\"FONT-SIZE: 12pt; FONT-FAMILY: \"Times New Roman\"; mso-fareast-font-family: \"Times New Roman\"; mso-ansi-language: EN-CA; mso-fareast-language: EN-US; mso-bidi-language: AR-SA\"><img hspace=\"0\" src=\"/images/dow181.png\" align=\"baseline\" border=\"0\" /></span></p><p><span style=\"FONT-SIZE: 12pt; FONT-FAMILY: \"Times New Roman\"; mso-fareast-font-family: \"Times New Roman\"; mso-ansi-language: EN-CA; mso-fareast-language: EN-US; mso-bidi-language: AR-SA\"></span></p>
 
just in case any one's interested, following did the magic:

$newsText = str_replace("“", '"', $newsText);
$newsText = str_replace("”", '"', $newsText);

I just hope my clients don't come up w/ any other weird way of typing a single/double qoute....

KarveR, thanx for your help dude ;)

cheers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top