Jump to content

CMS editing HTML in a textarea breaks code?!


jarv

Recommended Posts

hi, I have some HTML to edit in my database, in my back end administration I have it in a textarea but when I go to edit it, it all messes up and lots of  '/' area added, see below:

 

Site Design by: <a href=\\\\\\\"http://www.jbiddulph.com\\\\\\\" target=\\\\\\\"_blank\\\\\\\" title=\\\\\\\"John Biddulph - Web Development\\\\\\\">jbiddulph.com</a>

 

php code

<p>
							<label>Site Design by</label>
							<textarea class="text-input small-input" name="SiteDesignby"><?php echo $row1['SiteDesignby'] ?></textarea>
							</p>

 

 

someone suggested adding this to my page:

SiteDesignby.value = SiteDesignby.value.replace(/\\*."/g,'"');

 

I added the code and nothing changed!

Can anyone help please?

hmm Magic_Quotes?

 

the data in the database is:

 

<div class="social">
<span class='st_sharethis_hcount' displayText='ShareThis'></span>
<span class='st_facebook_hcount' displayText='Facebook'></span>
<span class='st_twitter_hcount' displayText='Tweet'></span>
<span class='st_linkedin_hcount' displayText='LinkedIn'></span>
<span class='st_fblike_hcount' displayText='Facebook Like'></span>
<span class='st_email_hcount' displayText='Email'></span>
</div>

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.