Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
escape value problem
24/06/2010
16:49
Avatar
emo.antonov
Sofia, Bulgaria
Member
Members
Forum Posts: 19
Member Since:
16/06/2010
sp_UserOfflineSmall Offline

Ok i have following value in db: <p>text text</p> and when i try to show it in grid it is autoescaped: &lt;p&gt;text text&lt;/p&gt;. How can i avoid this?

28/06/2010
10:16
Avatar
emo.antonov
Sofia, Bulgaria
Member
Members
Forum Posts: 19
Member Since:
16/06/2010
sp_UserOfflineSmall Offline

I found that the value in column is exact the same as value in db. How i read it in one of posts it is: what you have is what you put. But i dont want to have html tags in value (how to explain on none developer what is <p> or <br>) 🙂

28/06/2010
11:44
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Did you have read the options of the grid relted to this case?

How is set your autoencode option?

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

28/06/2010
12:14
Avatar
emo.antonov
Sofia, Bulgaria
Member
Members
Forum Posts: 19
Member Since:
16/06/2010
sp_UserOfflineSmall Offline

Yes, i have read about that option, but it is not working in my case. If autoencode: false -> i see <p>text</p>, if autoencode: true -> &lt;p&gt;text&lt;/p&gt;

29/06/2010
14:21
Avatar
emo.antonov
Sofia, Bulgaria
Member
Members
Forum Posts: 19
Member Since:
16/06/2010
sp_UserOfflineSmall Offline

Maybe i did not desciribe problem well. The whole thing i want is if i have <p>text</p><p>text</p> to see this two paragraphs like this:
text
text

01/07/2010
11:08
Avatar
emo.antonov
Sofia, Bulgaria
Member
Members
Forum Posts: 19
Member Since:
16/06/2010
sp_UserOfflineSmall Offline

If someone else is using this php application related to jqGrid plugin, and have my problem, here is the solution (it is more easy than i was thinking):

$grid->updateColumn('text', array('escape' => false));

cheers 🙂

19/07/2010
15:09
Avatar
boogey100
Member
Members
Forum Posts: 10
Member Since:
28/04/2010
sp_UserOfflineSmall Offline

I am having a similar problem. If I enter a value of "<test>" into a cell or form, when I edit the value again, it shows the value as "<test>"</test>. Any ideas?

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
47 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information