Jump to content

[SOLVED] Escaping too much data!


garry

Recommended Posts

Alright, so hopefully this wont be too hard to solve.

 

I'm using TinyMCE editor on my site, and it allows users to add styles to text. The problems arise when it uses the <span> tag.

 

Say for example, if TinyMCE added <span style="somethinghere">some text here</span>.

 

Because I have mysql_real_escape_string on, it will escape the style="" to become style=\"\" and so the styles won't display :(

 

How can I make it so that it won't escape inside the tags that I specify to fix this?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/107164-solved-escaping-too-much-data/
Share on other sites

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.