Jump to content

write quotes to txt file


simun

Recommended Posts

this work fine:

$naslovi = stripslashes($theData);

echo $naslovi;

 

but i need to echo it here:

<a class="thickbox" title="<? echo $naslovi;?>" href="/images/cache/objects/<?=$object->id?>/<?=$photo['filename']?>/w-800.jpg" rel="galler">

 

and here that dont work, where is the problem?

Stripslashes should work just fine.  You might not be seeing all of the text if you're outputting it as HTML due to some special char issues.  When you're not seeing portions of the text, you should always check the source.  The source is a better representation of what is actually happening.  My guess would be that it would be in the source.  I've never seen stripslashes remove entire chunks of text from a string before.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.