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!
and here's the text that's being grabbed from the DB:
<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...
sure, it did ;)
It got rid of the text I was looking for;
$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...
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 ;)
hahahaha, u're awesome....
try the following link:
http://www.hessiancapital.com/read.php?nid=150
and open the source from view...
do a ctrl-F and look for
"falling off the cliff"... you won't miss it ;)
thanx so much!!
ok, That problem is gone now....
check this out:
“falling off the cliff”
is replaced by "?"
notice how:
“falling off the cliff” differs from
"falling off the cliff"
well, I guess it comes down to replace:
<span style=\"mso-spacerun: yes\"> </span>
with
" "
I'm not so good at this... I'm making far tooo many funny attempts :(
hay check this out,
Whereever there's a space, the stupid html editor puts the following:
<span style=\"mso-spacerun: yes\"> </span>
I need to replace that whole thing with a simple space...
would this be the way to do it (because it's not working):
$newsText = str_replace("<span...
This is the code for read.php where I display the news:
<?
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...
ah dude, that would be awesome!!!!
Just one thing though, when I put this in pure html it works... it doesn't work, when I put it in my website. I'll give you my php code too then...
Following is what I get from teh database though:
<body><p class=\"MsoNormal\" style=\"MARGIN: 0in 0in...
here's the problem,
My user uses an html editor to enter their text. The html editor creates all sorts of html tags and stuff. I store this text in my Database.
Then when I fetch the news from the database, I remove the
<html></html><head></head><body></body> tags and then put the text in a...
yeah, I thought so... it's not working... it's tooo frustrating... I thought may be the usage of single quotes is causing a problem... but I guess that's not the case :(
would it help if I provide the link where you can see these ugly question marks?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.