Hi everyone,
How can I replace the blanks with + in red variable?
Thanks.
How can I replace the blanks with + in red variable?
Code:
class RSSParser {
var $insideitem = false;
var $tag = "";
var $title = "";
var $description = "";
var $link = "";
function startElement($parser, $tagName, $attrs) {
if ($this->insideitem) {
$this->tag = $tagName;
} elseif ($tagName == "ITEM") {
$this->insideitem = true;
}
}
function endElement($parser, $tagName) {
if ($tagName == "ITEM") {
print "
<b>" . $this->title . "</b>
<div class=\"text\">" . $this->description . "<br /><a href=\"" . [COLOR="Red"]$this->title[/COLOR] . "\" target=\"_blank\"></a></div><br />";
Thanks.







