Members: 16,996
Threads: 38,857
Posts: 159,396
Online: 330

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 02.11.2005, 04:06   #1 (permalink)
Junior Mamber
 
Join Date: Jul 2004
Posts: 26
Leohart is on a distinguished road
Default General Editor Mambot question

Hello everyone,

I am trying to learn how Editor Mambots work so that I can (perhap) contribute to them.

The question: How do they get around getting the HTML content from MySQL DB and put them into textarea value attributes without having problem with " in the HTML.

I tried to do the same thing on my own with some simple PHP but everything turned out messy since any double-quote (") would make the value="" attribute escape and cause HTML error.

Example (to clarify):
PHP Code:
$ContentFromDB '<p class="someclass">The doubequote of class attributes would cause problem </p>' 
Quote:
<textarea name="someName" value="<?=$Material?>"</textarea>

I tried to go through the code but without avail. My guess is the content from MySQL is load but tags are stripped ( " becomes &quot; and <> becomes $lt;$gt; and so on).

How do I going about doing the same thing? I mean stripping the tags and get TinyMCE (core of mosCE) to reassemble them?
Leohart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
General PHP question Chunter Mambo 4.5.1 General Talk 3 27.07.2005 16:21
Moved from Templates FAQ: General question. ctcentralinfo Template Discussions 6 03.03.2005 20:09
phpShop General Question Moolkye Component 'How Do I' Questions 2 08.11.2004 17:53
phpShop General Question Moolkye Component 'How Do I' Questions 1 25.10.2004 19:49
General Component Programming Question tonyskyday Development Discussions 18 22.04.2004 17:40


All times are GMT +2. The time now is 14:35.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.