![]() |
Issues with /r/n/r/n when displaying escaped data
I'm having an issue where I need to display data for user to edit in a <textarea> field. For instance, user enters following data:
Quote:
Quote:
I'm actually escaping the user input with this before sending it to a custom datamanager which I have attached. That's where the save takes place. PHP Code:
Then to diplay the data I loop through the SQL result as follows: PHP Code:
Thanks :) |
You don't have to escape it when using the datamanager, since they will call it for you. Only use it when sticking unsafe strings into queries.
|
ah , i see. So the datamanager class already takes care of escaping, etc... I wasn't aware of that. I searched throughout class_dm.php for $db->escape_string but couldn't find it so i didn't think that was being handled.
Thanks, they should put you on staff here. ;) |
It would be $this->dbobject->escape_string there.
|
AH YES THAT'S RIGHT!, ok i'm learning, lol
|
All times are GMT. The time now is 11:08 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|